Verified Commit 556a0522 authored by Jelle van der Waa's avatar Jelle van der Waa 🚧
Browse files

Monitor all mysqld eporters based on group

parent 5aacd09f
monitoring_domain: monitoring.archlinux.org monitoring_domain: monitoring.archlinux.org
gitlab_runner_exporter_port: '9252' gitlab_runner_exporter_port: '9252'
prometheus_mysqld_exporter_port: '9104'
blackbox_targets: blackbox_targets:
- https://archlinux.org - https://archlinux.org
......
...@@ -56,10 +56,14 @@ scrape_configs: ...@@ -56,10 +56,14 @@ scrape_configs:
- job_name: 'mysqld_exporter' - job_name: 'mysqld_exporter'
static_configs: static_configs:
{% for host in groups['mysql_servers'] %}
- targets: ['aur.archlinux.org:9104'] - targets: ['{{ host }}:{{ prometheus_mysqld_exporter_port }}']
labels: labels:
instance: "aur.archlinux.org" instance: "{{ host }}"
{% endfor %}
- job_name: 'memcached_exporter' - job_name: 'memcached_exporter'
static_configs: static_configs:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment