3 Pleroma includes support for exporting metrics via the [prometheus_ex](https://github.com/deadtrickster/prometheus.ex) library.
8 config :prometheus, Pleroma.Web.Endpoint.MetricsExporter,
10 auth: {:basic, "myusername", "mypassword"},
11 ip_whitelist: ["127.0.0.1"],
12 path: "/api/pleroma/app_metrics",
16 * `enabled` (Pleroma extension) enables the endpoint
17 * `ip_whitelist` (Pleroma extension) could be used to restrict access only to specified IPs
18 * `auth` sets the authentication (`false` for no auth; configurable to HTTP Basic Auth, see [prometheus-plugs](https://github.com/deadtrickster/prometheus-plugs#exporting) documentation)
19 * `format` sets the output format (`:text` or `:protobuf`)
20 * `path` sets the path to app metrics page
23 ## `/api/pleroma/app_metrics`
25 ### Exports Prometheus application metrics
28 * Authentication: not required by default (see configuration options above)
36 The following is a config example to use with [Grafana](https://grafana.com)
40 metrics_path: /api/pleroma/app_metrics
43 - targets: ['pleroma.soykaf.com']