-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
abef324
commit d1f90c9
Showing
1 changed file
with
9 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,6 +34,15 @@ The check plugin respects the environment variables `HTTP_PROXY`, `HTTPS_PROXY` | |
Various flags can be set with environment variables, refer to the help to see which flags. | ||
In the case Prometheus runs behind a reverse proxy, the `--url` parameter can be used: | ||
```bash | ||
# https://monitoring.example.com:443/subpath | ||
$ check_prometheus health -H 'monitoring.example.com' --port 443 --secure --url /subpath | ||
OK - Prometheus Server is Healthy. | statuscode=200 | ||
``` | ||
### Health | ||
Checks the health or readiness status of the Prometheus server. | ||
|
@@ -179,17 +188,6 @@ $ check_prometheus alert --name "HostHighCpuLoad" --name "PrometheusTargetMissin | |
OK - Alerts inactive | total=2 firing=0 pending=0 inactive=2 | ||
``` | ||
### Special cases | ||
#### Your Prometheus runs behind a reverse proxy | ||
>Example: <https://monitoring.example.com:443/subpath> | ||
```bash | ||
$ check_prometheus health --hostname 'monitoring.example.com' --port 443 --secure --url /subpath | ||
OK - Prometheus Server is Healthy. | statuscode=200 | ||
``` | ||
## License | ||
Copyright (c) 2022 [NETWAYS GmbH](mailto:[email protected]) | ||
|