fix(monitoring): copy alerts.yml without jinja2 templating
This commit is contained in:
1 parent
2445df7146
commit
065c47aee2
11 files changed
+12
-2
No files matched your search
@@ -8,3 +8,4 @@ grafana_root_url: "https://graf.gunihome.ru"
|
||||
|
||||
ntfy_base_url: "https://ntfy.gunihome.ru"
|
||||
ntfy_default_topic: "homelab-alerts"
|
||||
|
||||
File renamed without changes.
@@ -27,8 +27,8 @@
|
||||
mode: "0644"
|
||||
|
||||
- name: Установить правила алертов Prometheus
|
||||
ansible.builtin.template:
|
||||
src: alerts.yml.j2
|
||||
ansible.builtin.copy:
|
||||
src: alerts.yml
|
||||
dest: "{{ monitoring_dir }}/prometheus/alerts.yml"
|
||||
owner: root
|
||||
group: root
|
||||
@@ -62,3 +62,4 @@
|
||||
ansible.builtin.command: docker compose -f {{ monitoring_dir }}/compose.yaml up -d --remove-orphans
|
||||
register: compose_up
|
||||
changed_when: "'Started' in compose_up.stderr or 'Created' in compose_up.stderr or 'Recreated' in compose_up.stderr or 'Pulled' in compose_up.stderr"
|
||||
|
||||
@@ -13,3 +13,4 @@ receivers:
|
||||
webhook_configs:
|
||||
- url: "http://ntfy:80/{{ ntfy_default_topic }}"
|
||||
send_resolved: true
|
||||
|
||||
@@ -80,3 +80,4 @@ services:
|
||||
- '--collector.filesystem.mount-points-exclude=^/(sys|proc|dev|host|etc)($$|/)'
|
||||
ports:
|
||||
- "9100:9100"
|
||||
|
||||
@@ -8,3 +8,4 @@ datasources:
|
||||
isDefault: true
|
||||
jsonData:
|
||||
timeInterval: 15s
|
||||
|
||||
@@ -38,3 +38,4 @@ scrape_configs:
|
||||
labels:
|
||||
host: "rus-central"
|
||||
env: "prod"
|
||||
|
||||
@@ -13,3 +13,4 @@ http:
|
||||
loadBalancer:
|
||||
servers:
|
||||
- url: "http://192.168.1.108:80"
|
||||
|
||||
Reference in new issue
Block a user