Add nginx_exporter to prometheus servers
This commit is contained in:
parent
6e4cbe8b40
commit
a7432b2208
3 changed files with 12 additions and 0 deletions
|
@ -99,6 +99,7 @@ prometheus:
|
||||||
prometheus02.home.foo.sh:
|
prometheus02.home.foo.sh:
|
||||||
vars:
|
vars:
|
||||||
mysqld_exporter_version: "0.15.1"
|
mysqld_exporter_version: "0.15.1"
|
||||||
|
nginx_exporter_version: "1.1.0"
|
||||||
proxy:
|
proxy:
|
||||||
hosts:
|
hosts:
|
||||||
proxy01.home.foo.sh:
|
proxy01.home.foo.sh:
|
||||||
|
|
|
@ -27,3 +27,4 @@
|
||||||
- base
|
- base
|
||||||
- prometheus
|
- prometheus
|
||||||
- mysqld_exporter
|
- mysqld_exporter
|
||||||
|
- nginx_exporter
|
||||||
|
|
|
@ -29,6 +29,16 @@ scrape_configs:
|
||||||
- target_label: __address__
|
- target_label: __address__
|
||||||
replacement: {{ inventory_hostname }}:9104
|
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
|
- job_name: snmp
|
||||||
scheme: https
|
scheme: https
|
||||||
tls_config:
|
tls_config:
|
||||||
|
|
Loading…
Add table
Reference in a new issue