Skip to content

docs: Prometheus metrics + generator #5179

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 20 commits into from
Nov 30, 2022
Prev Previous commit
Next Next commit
Update docs/admin/prometheus.md
Co-authored-by: Dean Sheather <dean@deansheather.com>
  • Loading branch information
mtojek and deansheather authored Nov 28, 2022
commit 77d9feccbea31d9f0a6d5dbec318cf4179ef9c6d
2 changes: 1 addition & 1 deletion docs/admin/prometheus.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Coder server exports metrics via the HTTP endpoint, which can be enabled using e

The Prometheus endpoint address is `http://localhost:2112/` by default. You can use either the environment variable `CODER_PROMETHEUS_ADDRESS` or the flag ` --prometheus-address <network-interface>:<port>` to select a different listen address.

If `coder server --prometheus-enable` is started locally, you can preview the metrics endpoint: <!-- markdown-link-check-disable -->http://localhost:2112/<!-- markdown-link-check-enable --> (default endpoint).
If `coder server --prometheus-enable` is started locally, you can preview the metrics endpoint in your browser or by using curl: <!-- markdown-link-check-disable -->http://localhost:2112/<!-- markdown-link-check-enable -->.

```
# HELP coderd_api_active_users_duration_hour The number of users that have been active within the last hour.
Expand Down