Add nginx_exporter to prometheus servers

This commit is contained in:
Timo Makinen 2024-03-20 20:44:43 +00:00
parent 6e4cbe8b40
commit a7432b2208
3 changed files with 12 additions and 0 deletions

View file

@ -29,6 +29,16 @@ scrape_configs:
- target_label: __address__
replacement: {{ inventory_hostname }}:9104
- job_name: nginx
scheme: https
tls_config:
ca_file: "{{ tls_certs }}/ca.crt"
key_file: "{{ tls_private }}/{{ inventory_hostname }}.key"
cert_file: "{{ tls_certs }}/{{ inventory_hostname }}.crt"
static_configs:
- targets:
- {{ inventory_hostname }}:9113
- job_name: snmp
scheme: https
tls_config: