summaryrefslogtreecommitdiff
path: root/inventory/host_vars/ch-mon.yml
diff options
context:
space:
mode:
Diffstat (limited to 'inventory/host_vars/ch-mon.yml')
-rw-r--r--inventory/host_vars/ch-mon.yml19
1 files changed, 19 insertions, 0 deletions
diff --git a/inventory/host_vars/ch-mon.yml b/inventory/host_vars/ch-mon.yml
index 17fc2024..67039671 100644
--- a/inventory/host_vars/ch-mon.yml
+++ b/inventory/host_vars/ch-mon.yml
@@ -137,6 +137,25 @@ prometheus_job_multitarget_ssl__probe:
target: "/etc/ssl/prometheus/**/*.pem"
module: file
+prometheus_server_rules_node_extra:
+ - alert: GitFsckMetricsOutdated
+ expr: time() - git_fsck_run > 100000
+ for: 0m
+ labels:
+ severity: warning
+ annotations:
+ summary: Metrics from git-fsck are too old (instance {{ '{{' }} $labels.instance {{ '}}' }})
+ description: "The exported values from git-fsck on host {{ '{{' }} $labels.instance {{ '}}' }} are {{ '{{' }} $value {{ '}}' }} seconds old.\n VALUE = {{ '{{' }} $value {{ '}}' }}\n LABELS = {{ '{{' }} $labels {{ '}}' }}"
+
+ - alert: GitFsckFailed
+ expr: time() - git_fsck_run > 100000
+ for: 0m
+ labels:
+ severity: warning
+ annotations:
+ summary: git-filesystem check failed (instance {{ '{{' }} $labels.instance {{ '}}' }})
+ description: "The git repostory {{ '{{' }} $labels.repository {{ '}}' }}@{{ '{{' }} $labels.gitolite_instance {{ '}}' }} on host {{ '{{' }} $labels.instance {{ '}}' }} is corrupt.\n VALUE = {{ '{{' }} $value {{ '}}' }}\n LABELS = {{ '{{' }} $labels {{ '}}' }}"
+
prometheus_alertmanager_smtp:
smarthost: "{{ network_zones.lan.prefix | ansible.utils.ipaddr(network_zones.lan.offsets['ch-prometheus-legacy']) | ansible.utils.ipaddr('address') }}:25"