How can I configure the web.external-url
Hi
We need to specify the web.external-url for the pushgateway the same way we can for the prometheus itself.
In the template the only option I found to add additional configuration is in the web_config file:
--web.config.file=/etc/pushgateway/web_config.yml
with the variable:
pushgateway_http_server_config
But I can't find any documentations about what options to configure. And using
web.external-url=
is always failing. Any hints?
Hi, AFAIK the web.external-url option is a flag that should be passed to the binary and not a config file option for the web config.
I don't think it's possible to set the web.external-url for the pushgateway as the service template in the role does not have any options of specifying the external url and also does not have any option of passing in extra flags for the binary.
With that being said, PR's welcome.
We also need the web.external-url parameter as we're running Pushgateway behind a reverse proxy (Caddy).
We've been using the CloudAlchemy role (https://github.com/cloudalchemy/ansible-pushgateway/tree/0.2.4) which I thought was the base for this community role, but when tryng to switch, I found the pushgateway_web_external_url parameter missing.
Here's a PR with this flag added (back?) and an additional "extra flags" parameter: https://github.com/prometheus-community/ansible/pull/320
@gardar Does this look sensible?