[prometheus-nginx] Change exposed port for a non-standard port

Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
certbot_on_virtu
Yohann D'ANELLO 2021-02-24 23:08:37 +01:00 committed by ynerant
parent 08f359cc9c
commit 13b0367d46
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@
path: /etc/default/prometheus-nginx-exporter path: /etc/default/prometheus-nginx-exporter
regexp: '^ARGS=' regexp: '^ARGS='
line: | line: |
ARGS="-web.listen-address={{ adm_ipv4 }}:9117" ARGS="-web.listen-address={{ adm_ipv4 }}:9117 -nginx.scrape-uri=http://[::1]:6424/stub_status"
notify: notify:
- Restart nginx - Restart nginx
- Restart prometheus-nginx-exporter - Restart prometheus-nginx-exporter

View File

@ -1,7 +1,7 @@
{{ ansible_header | comment }} {{ ansible_header | comment }}
server { server {
listen 127.0.0.1:8080; listen [::1]:8080;
location = /stub_status { location = /stub_status {
stub_status; stub_status;
} }