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

@ -99,6 +99,7 @@ prometheus:
prometheus02.home.foo.sh:
vars:
mysqld_exporter_version: "0.15.1"
nginx_exporter_version: "1.1.0"
proxy:
hosts:
proxy01.home.foo.sh:

View file

@ -27,3 +27,4 @@
- base
- prometheus
- mysqld_exporter
- nginx_exporter

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: