How can you view the current configuration of a running Prometheus server?
Trap 1: Check the /metrics endpoint
The metrics endpoint displays prometheus internal stats.
Trap 2: View /status/config
The standard path is /config.
Trap 3: Run a PromQL query
PromQL cannot query the server's own config file.
- A
Visit /config in the UI
The /config route exposes the active configuration.
- B
Check the /metrics endpoint
Why wrong: The metrics endpoint displays prometheus internal stats.
- C
View /status/config
Why wrong: The standard path is /config.
- D
Run a PromQL query
Why wrong: PromQL cannot query the server's own config file.
- E
Look at the PID file
Why wrong: The PID file only contains the process ID.