Skip to content
Discussion options

You must be logged in to vote

There is no separate API token — the /metrics endpoint 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 /metrics entirely:

environment:
  - DD_SERVER_METRICS_AUTH=false

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:

scrape_configs:
  - job_name: drydock
    basic_auth:
      username: john
      password: yourpassword   # the plain-text password (not the hash)
    static_configs:
      - targets: ["drydock:3000"]

The pa…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@scttbnsn
Comment options

Answer selected by begunfx
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants