|
The docs say that by default auth is required for the /metrics endpoint but say nothing about how to generate the token OR where I need to create and store it. |
Replies: 2 comments 1 reply
|
There is no separate API token — the Option 1: Disable metrics auth (simplest)If your Prometheus instance is on a trusted network, you can skip auth on environment:
- DD_SERVER_METRICS_AUTH=falseOption 2: Use your Basic auth credentialsIf you have Basic auth configured ( scrape_configs:
- job_name: drydock
basic_auth:
username: john
password: yourpassword # the plain-text password (not the hash)
static_configs:
- targets: ["drydock:3000"]The password here is the plain-text password that corresponds to the argon2id hash you set in I'll update the monitoring docs to make this clearer — you're right that this gap is confusing. Thanks for flagging it! |
|
Don't forget to update the docs with this new addition! |
There is no separate API token — the
/metricsendpoint uses the same authentication you configure for the rest of drydock (Basic auth or OIDC).Option 1: Disable metrics auth (simplest)
If your Prometheus instance is on a trusted network, you can skip auth on
/metricsentirely:Option 2: Use your Basic auth credentials
If you have Basic auth configured (
DD_AUTH_BASIC_*env vars), use those same credentials in your Prometheus scrape config:The pa…