r/v-m-nginx: Proxy for other services too
The *metricspi* hosts several Victoria Metrics-adjacent applications. These each expose their own HTTP interface that can be used for debugging or introspecting state. To make these accessible on the network, the *victoria-metrics-nginx* role now configures `proxy_pass` directives for them in its nginx configuration.btop
parent
7ac5493b63
commit
887d462127
|
@ -1 +1,10 @@
|
||||||
victoria_metrics_server_name: '{{ ansible_fqdn }}'
|
victoria_metrics_server_name: '{{ ansible_fqdn }}'
|
||||||
|
vm_nginx_proxy_paths:
|
||||||
|
- path: /alertmanager/
|
||||||
|
url: http://[::1]:9093/
|
||||||
|
- path: /vmagent/
|
||||||
|
url: http://[::1]:8429/
|
||||||
|
- path: /vmalert
|
||||||
|
url: http://[::1]:8880
|
||||||
|
- path: /blackbox_exporter/
|
||||||
|
url: http://[::1]:9115/
|
||||||
|
|
|
@ -7,4 +7,10 @@ server {
|
||||||
proxy_pass http://[::1]:8428/;
|
proxy_pass http://[::1]:8428/;
|
||||||
client_max_body_size 100m;
|
client_max_body_size 100m;
|
||||||
}
|
}
|
||||||
|
{% for item in vm_nginx_proxy_paths %}
|
||||||
|
|
||||||
|
location {{ item.path }} {
|
||||||
|
proxy_pass {{ item.url }};
|
||||||
|
}
|
||||||
|
{% endfor %}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue