3 If you run akkoma, you may be inclined to collect metrics to ensure your instance is running smoothly,
4 and that there's nothing quietly failing in the background.
6 To facilitate this, akkoma exposes prometheus metrics to be scraped.
10 To scrape prometheus metrics, we need an oauth2 token with the `admin:metrics` scope.
12 consider using [constanze](https://akkoma.dev/AkkomaGang/constanze) to make this easier -
15 constanze token --client-app --scopes "admin:metrics" --client-name "Prometheus"
18 or see `scripts/create_metrics_app.sh` in the source tree for the process to get this token.
20 Once you have your token of the form `Bearer $ACCESS_TOKEN`, you can use that in your prometheus config:
26 credentials: $ACCESS_TOKEN # this should have the bearer prefix removed
27 metrics_path: /api/v1/akkoma/metrics