Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
martialblog committed Nov 28, 2024
1 parent abef324 commit d1f90c9
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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])
Expand Down

0 comments on commit d1f90c9

Please sign in to comment.