Skip to content

Commit 8568c90

Browse files
authored
Merge pull request #62 from NETWAYS/chore/readme
Update README
2 parents abef324 + d1f90c9 commit 8568c90

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

README.md

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,15 @@ The check plugin respects the environment variables `HTTP_PROXY`, `HTTPS_PROXY`
3434
3535
Various flags can be set with environment variables, refer to the help to see which flags.
3636
37+
In the case Prometheus runs behind a reverse proxy, the `--url` parameter can be used:
38+
39+
```bash
40+
# https://monitoring.example.com:443/subpath
41+
42+
$ check_prometheus health -H 'monitoring.example.com' --port 443 --secure --url /subpath
43+
OK - Prometheus Server is Healthy. | statuscode=200
44+
```
45+
3746
### Health
3847
3948
Checks the health or readiness status of the Prometheus server.
@@ -179,17 +188,6 @@ $ check_prometheus alert --name "HostHighCpuLoad" --name "PrometheusTargetMissin
179188
OK - Alerts inactive | total=2 firing=0 pending=0 inactive=2
180189
```
181190
182-
### Special cases
183-
184-
#### Your Prometheus runs behind a reverse proxy
185-
186-
>Example: <https://monitoring.example.com:443/subpath>
187-
188-
```bash
189-
$ check_prometheus health --hostname 'monitoring.example.com' --port 443 --secure --url /subpath
190-
OK - Prometheus Server is Healthy. | statuscode=200
191-
```
192-
193191
## License
194192
195193
Copyright (c) 2022 [NETWAYS GmbH](mailto:[email protected])

0 commit comments

Comments
 (0)