Skip to content
Snippets Groups Projects
Commit 13b0367d authored by ynerant's avatar ynerant Committed by ynerant
Browse files

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


Signed-off-by: ynerant's avatarYohann D'ANELLO <ynerant@crans.org>
parent 08f359cc
No related branches found
No related tags found
1 merge request!214Fix root playbook
......@@ -12,7 +12,7 @@
path: /etc/default/prometheus-nginx-exporter
regexp: '^ARGS='
line: |
ARGS="-web.listen-address={{ adm_ipv4 }}:9117"
ARGS="-web.listen-address={{ adm_ipv4 }}:9117 -nginx.scrape-uri=http://[::1]:6424/stub_status"
notify:
- Restart nginx
- Restart prometheus-nginx-exporter
......
{{ ansible_header | comment }}
server {
listen 127.0.0.1:8080;
listen [::1]:8080;
location = /stub_status {
stub_status;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment