feat(monitoring): цели Prometheus из inventory и хосты в Grafana через up
ansible-core-mon / deploy (push) Successful in 26s
ansible-core-net / deploy (push) Successful in 43s
ansible-core-secrets / deploy (push) Successful in 15s
ansible-ger-nod-02 / deploy (push) Successful in 55s
ansible-opnsense / deploy (push) Successful in 5s
ansible-rus-central / deploy (push) Successful in 59s
ansible-core-mon / deploy (push) Successful in 26s
ansible-core-net / deploy (push) Successful in 43s
ansible-core-secrets / deploy (push) Successful in 15s
ansible-ger-nod-02 / deploy (push) Successful in 55s
ansible-opnsense / deploy (push) Successful in 5s
ansible-rus-central / deploy (push) Successful in 59s
Список scrape строится из inventory, дашборд показывает все цели, не только с успешным node_exporter. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
4316f2c68e
commit
408dfd09c3
6 files changed
+79
-26
No files matched your search
@@ -2,6 +2,15 @@
|
||||
monitoring_dir: /opt/monitoring
|
||||
prometheus_retention: "30d"
|
||||
|
||||
# Цели node-exporter: все хосты из inventory, кроме исключений.
|
||||
# Отключить scrape на хосте: host_vars monitoring_scrape_enabled: false
|
||||
# Другой адрес/порт: monitoring_scrape_address, monitoring_node_exporter_port
|
||||
monitoring_scrape_exclude_hosts:
|
||||
- opnsense
|
||||
monitoring_node_exporter_port: 9100
|
||||
monitoring_scrape_job_name: node-exporter
|
||||
monitoring_env_label: prod
|
||||
|
||||
grafana_admin_user: "{{ lookup('ansible.builtin.env', 'ADMIN_USER', default='karpenok') }}"
|
||||
grafana_admin_password: "{{ lookup('ansible.builtin.env', 'ADMIN_PASSWORD', default='') }}"
|
||||
grafana_admin_email: "{{ lookup('ansible.builtin.env', 'MAIL_ADMIN_USER', default=grafana_admin_user ~ '@gunihome.ru') }}"
|
||||
|
||||
Reference in new issue
Block a user