commands
prometheus — Inspect Prometheus version
Prometheus collects and stores labeled time series and evaluates queries and rules. This invocation reports version information only; it does not start a server. Use a fresh private workspace; this example does not start a server.
Formal Syntax & Structure
linux syntaxlinux
prometheus --versionParameters & Attributes
| Name | Type | Description |
|---|---|---|
| --version | option | Display version |
Return Value
exit status and output
The version flag prints version/build identification and exits rather than starting the server. Success does not validate configuration, scraping or time-series storage.
Working Example
Example Snippetlinux
prometheus --version