mirror of
https://github.com/prometheus/prometheus
synced 2026-04-30 23:05:05 +08:00
feat: health and readiness check of prometheus server in CLI (promtool) (#12096)
* feat: health and readiness check of prometheus server in CLI (promtool) Signed-off-by: nidhey27 <nidhey.indurkar@infracloud.io>
This commit is contained in:
committed by
GitHub
parent
4af28f8cf6
commit
3f7beeecc6
@@ -58,6 +58,7 @@ Check the resources for validity.
|
||||
|
||||
| Flag | Description |
|
||||
| --- | --- |
|
||||
| <code class="text-nowrap">--http.config.file</code> | HTTP client configuration file for promtool to connect to Prometheus. |
|
||||
| <code class="text-nowrap">--extended</code> | Print extended information related to the cardinality of the metrics. |
|
||||
|
||||
|
||||
@@ -130,6 +131,36 @@ Check if the web config files are valid or not.
|
||||
|
||||
|
||||
|
||||
##### `promtool check healthy`
|
||||
|
||||
Check if the Prometheus server is healthy.
|
||||
|
||||
|
||||
|
||||
###### Arguments
|
||||
|
||||
| Argument | Description |
|
||||
| --- | --- |
|
||||
| server | The URL of the Prometheus server to check (e.g. http://localhost:9090) |
|
||||
|
||||
|
||||
|
||||
|
||||
##### `promtool check ready`
|
||||
|
||||
Check if the Prometheus server is ready.
|
||||
|
||||
|
||||
|
||||
###### Arguments
|
||||
|
||||
| Argument | Description |
|
||||
| --- | --- |
|
||||
| server | The URL of the Prometheus server to check (e.g. http://localhost:9090) |
|
||||
|
||||
|
||||
|
||||
|
||||
##### `promtool check rules`
|
||||
|
||||
Check if the rule files are valid or not.
|
||||
|
||||
Reference in New Issue
Block a user