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
@@ -38,3 +38,4 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
chmod -R go-w "${HOME}/homelab-infra"
|
chmod -R go-w "${HOME}/homelab-infra"
|
||||||
exec bash "${HOME}/homelab-infra/ansible/ci/deploy-machine.sh" core-mon "${{ github.event_name }}" "${{ github.event.before }}" "${{ github.sha }}"
|
exec bash "${HOME}/homelab-infra/ansible/ci/deploy-machine.sh" core-mon "${{ github.event_name }}" "${{ github.event.before }}" "${{ github.sha }}"
|
||||||
|
|
||||||
@@ -2,3 +2,4 @@
|
|||||||
monitoring_dir: /opt/monitoring
|
monitoring_dir: /opt/monitoring
|
||||||
grafana_domain: "graf.gunihome.ru"
|
grafana_domain: "graf.gunihome.ru"
|
||||||
ntfy_domain: "ntfy.gunihome.ru"
|
ntfy_domain: "ntfy.gunihome.ru"
|
||||||
|
|
||||||
@@ -8,3 +8,4 @@ grafana_root_url: "https://graf.gunihome.ru"
|
|||||||
|
|
||||||
ntfy_base_url: "https://ntfy.gunihome.ru"
|
ntfy_base_url: "https://ntfy.gunihome.ru"
|
||||||
ntfy_default_topic: "homelab-alerts"
|
ntfy_default_topic: "homelab-alerts"
|
||||||
|
|
||||||
File renamed without changes.
@@ -27,8 +27,8 @@
|
|||||||
mode: "0644"
|
mode: "0644"
|
||||||
|
|
||||||
- name: Установить правила алертов Prometheus
|
- name: Установить правила алертов Prometheus
|
||||||
ansible.builtin.template:
|
ansible.builtin.copy:
|
||||||
src: alerts.yml.j2
|
src: alerts.yml
|
||||||
dest: "{{ monitoring_dir }}/prometheus/alerts.yml"
|
dest: "{{ monitoring_dir }}/prometheus/alerts.yml"
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
@@ -62,3 +62,4 @@
|
|||||||
ansible.builtin.command: docker compose -f {{ monitoring_dir }}/compose.yaml up -d --remove-orphans
|
ansible.builtin.command: docker compose -f {{ monitoring_dir }}/compose.yaml up -d --remove-orphans
|
||||||
register: compose_up
|
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"
|
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:
|
webhook_configs:
|
||||||
- url: "http://ntfy:80/{{ ntfy_default_topic }}"
|
- url: "http://ntfy:80/{{ ntfy_default_topic }}"
|
||||||
send_resolved: true
|
send_resolved: true
|
||||||
|
|
||||||
@@ -80,3 +80,4 @@ services:
|
|||||||
- '--collector.filesystem.mount-points-exclude=^/(sys|proc|dev|host|etc)($$|/)'
|
- '--collector.filesystem.mount-points-exclude=^/(sys|proc|dev|host|etc)($$|/)'
|
||||||
ports:
|
ports:
|
||||||
- "9100:9100"
|
- "9100:9100"
|
||||||
|
|
||||||
@@ -8,3 +8,4 @@ datasources:
|
|||||||
isDefault: true
|
isDefault: true
|
||||||
jsonData:
|
jsonData:
|
||||||
timeInterval: 15s
|
timeInterval: 15s
|
||||||
|
|
||||||
@@ -38,3 +38,4 @@ scrape_configs:
|
|||||||
labels:
|
labels:
|
||||||
host: "rus-central"
|
host: "rus-central"
|
||||||
env: "prod"
|
env: "prod"
|
||||||
|
|
||||||
@@ -13,3 +13,4 @@ http:
|
|||||||
loadBalancer:
|
loadBalancer:
|
||||||
servers:
|
servers:
|
||||||
- url: "http://192.168.1.108:80"
|
- url: "http://192.168.1.108:80"
|
||||||
|
|
||||||
@@ -49,3 +49,4 @@ resource "proxmox_virtual_environment_container" "core_mon" {
|
|||||||
nesting = true
|
nesting = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Reference in new issue
Block a user