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:
Nidhey Nitin Indurkar
2023-04-04 02:02:39 +05:30
committed by GitHub
parent 4af28f8cf6
commit 3f7beeecc6
2 changed files with 91 additions and 0 deletions

View File

@@ -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.