add haproxy scraping for use with builtin haproxy exporter
This commit is contained in:
parent
0f1624c55d
commit
e01e571906
@ -13,7 +13,7 @@ Role variables
|
||||
--------------
|
||||
|
||||
| Variable | Type | Choices | Default | Comment |
|
||||
|----------------------------------------------|---------|--------------------------------------------------------|-------------|-----------------|
|
||||
|----------------------------------------------|---------|------------------------------------------------------------------|-------------|-----------------|
|
||||
| prometheus_server_enable | string | true / false | | |
|
||||
| prometheus_server_version | string | | latest | |
|
||||
| prometheus_server_monitor | string | | | |
|
||||
@ -22,7 +22,7 @@ Role variables
|
||||
| prometheus_server_job_name | string | | prometheus | |
|
||||
| prometheus_server_scrape_interval | string | | 5 | |
|
||||
| prometheus_server_scrape_timeout | string | | 5 | |
|
||||
| prometheus_exporter_packages | list | node / mysqld / postgresql / mongodb / phpfpm / apache | | |
|
||||
| prometheus_exporter_packages | list | node / mysqld / postgresql / mongodb / phpfpm / apache / haproxy | | |
|
||||
| prometheus_node_exporter_targets | list | | | |
|
||||
| prometheus_mysqld_exporter_targets | list | | | |
|
||||
| prometheus_mongodb_exporter_targets | list | | | |
|
||||
|
@ -96,3 +96,14 @@ scrape_configs:
|
||||
- {{ target }}:9117
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% if prometheus_haproxy_exporter_targets is defined %}
|
||||
- job_name: haproxy
|
||||
scrape_interval: 30s
|
||||
scrape_timeout: 10s
|
||||
static_configs:
|
||||
- targets:
|
||||
{% for target in prometheus_haproxy_exporter_targets %}
|
||||
- {{ target }}:8404
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user