Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.

Commit

Permalink
Update README and doc file
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Sebastian Puetz committed Mar 4, 2022
1 parent c7dbc33 commit 60cf0b0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,5 +134,4 @@ Providing a means to create objects would necessitate to re-create most of the l
## ToDos

* Extend the Prometheus configuration object with authentication options (as the server may be shielded by a reverse proxy).
* Extend the Prometheus and Icinga configuration objects with custom proxy options (setting HTTPS_PROXY and HTTP_PROXY in the environment would cause *both* clients to connect to Prometheus/Icinga2 via this proxy).
* Also provide a means to interpret a PromQL query result of type "matrix".
6 changes: 1 addition & 5 deletions doc/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,7 @@ proxy:
host: http://pro.xy:3128
```

By default both the Prometheus and Icinga clients read the common environment variables as well (that is HTTP_PROXY, HTTPS_PROXY and their lowercase pendants). However perhaps only one client is actually supposed to communicate to either API via a proxy server.<br>
The above section allows to account for that and can be used in various ways:
* when environment variables are set (e.g. in the systemd unit file) configure one client (Prometheus or Icinga) to ignore the environment by setting `proxy.ignore: true`.
* do not set any environment variables but explicitly enable proxy usage for either Prometheus or Icinga by setting e.g. `proxy.host: http://pro.xy`.
* override the environment as setting a proxy explicitly in the configuration takes precedence.
By default both the Prometheus and Icinga clients read the common environment variables as well (that is HTTP_PROXY, HTTPS_PROXY, NO_PROXY and their lowercase pendants). When a proxy is specified in the configuration file the aforementioned environment variables are ignored.

### Mappings

Expand Down

0 comments on commit 60cf0b0

Please sign in to comment.