feat(monitoring): заменить Prometheus на vmalert
ansible-core-mon / deploy (push) Successful in 37s
ansible-core-net / deploy (push) Successful in 56s
ansible-core-secrets / deploy (push) Successful in 16s
ansible-ger-nod-02 / deploy (push) Successful in 1m22s
ansible-opnsense / deploy (push) Successful in 6s
ansible-rus-central / deploy (push) Successful in 39s
ansible-core-mon / deploy (push) Successful in 37s
ansible-core-net / deploy (push) Successful in 56s
ansible-core-secrets / deploy (push) Successful in 16s
ansible-ger-nod-02 / deploy (push) Successful in 1m22s
ansible-opnsense / deploy (push) Successful in 6s
ansible-rus-central / deploy (push) Successful in 39s
Алерты считаются по VictoriaMetrics и уходят в тот же Alertmanager, второй сбор метрик больше не нужен. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
28b8bcf708
commit
57aa12b9c5
10 files changed
+59
-79
No files matched your search
@@ -1,6 +1,6 @@
|
||||
---
|
||||
monitoring_dir: /opt/monitoring
|
||||
prometheus_retention: "30d"
|
||||
victoriametrics_retention: "30d"
|
||||
|
||||
# Цели node-exporter: все хосты из inventory, кроме исключений.
|
||||
# Отключить scrape на хосте: host_vars monitoring_scrape_enabled: false
|
||||
@@ -8,11 +8,14 @@ prometheus_retention: "30d"
|
||||
monitoring_scrape_exclude_hosts:
|
||||
- opnsense
|
||||
monitoring_node_exporter_port: 9100
|
||||
monitoring_scrape_job_name: node-exporter
|
||||
monitoring_env_label: prod
|
||||
|
||||
victoriametrics_image: victoriametrics/victoria-metrics:v1.153.0
|
||||
vmalert_image: victoriametrics/vmalert:v1.153.0
|
||||
vmagent_image: victoriametrics/vmagent:v1.153.0
|
||||
# Свой vmagent уже пишет node-exporter этих хостов. Повторный scrape даст двойные сэмплы.
|
||||
vmagent_central_scrape_skip:
|
||||
- core-mon
|
||||
- core-net
|
||||
cadvisor_image: gcr.io/cadvisor/cadvisor:v0.49.2
|
||||
xray_checker_image: kutovoys/xray-checker:v1.3.1
|
||||
xray_checker_subscription_url: "{{ lookup('env', 'XRAY_CHECKER_SUBSCRIPTION_URL', default='') }}"
|
||||
|
||||
Reference in new issue
Block a user