Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
infrastructure
Commits
556a0522
Verified
Commit
556a0522
authored
Oct 15, 2020
by
Jelle van der Waa
🚧
Browse files
Monitor all mysqld eporters based on group
parent
5aacd09f
Changes
2
Hide whitespace changes
Inline
Side-by-side
roles/prometheus/defaults/main.yml
View file @
556a0522
monitoring_domain
:
monitoring.archlinux.org
gitlab_runner_exporter_port
:
'
9252'
prometheus_mysqld_exporter_port
:
'
9104'
blackbox_targets
:
-
https://archlinux.org
...
...
roles/prometheus/templates/prometheus.yml.j2
View file @
556a0522
...
...
@@ -56,10 +56,14 @@ scrape_configs:
- job_name: 'mysqld_exporter'
static_configs:
{% for host in groups['mysql_servers'] %}
- targets: ['
aur.archlinux.org:9104
']
- targets: ['
{{ host }}:{{ prometheus_mysqld_exporter_port }}
']
labels:
instance: "aur.archlinux.org"
instance: "{{ host }}"
{% endfor %}
- job_name: 'memcached_exporter'
static_configs:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment