summaryrefslogtreecommitdiff
path: root/roles/monitoring/prometheus/server/templates/rules.yml.j2
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2021-06-21 00:23:51 +0200
committerChristian Pointner <equinox@spreadspace.org>2021-06-21 00:23:51 +0200
commit1a40395d35db76e1482bc32fb7a97e6a60c4b1dc (patch)
tree571046c5456f6ee8687ec7a2a49642c48dd4fc46 /roles/monitoring/prometheus/server/templates/rules.yml.j2
parentcosmetic fix (diff)
promethues: initial support for alert rules
Diffstat (limited to 'roles/monitoring/prometheus/server/templates/rules.yml.j2')
-rw-r--r--roles/monitoring/prometheus/server/templates/rules.yml.j25
1 files changed, 5 insertions, 0 deletions
diff --git a/roles/monitoring/prometheus/server/templates/rules.yml.j2 b/roles/monitoring/prometheus/server/templates/rules.yml.j2
new file mode 100644
index 00000000..30576363
--- /dev/null
+++ b/roles/monitoring/prometheus/server/templates/rules.yml.j2
@@ -0,0 +1,5 @@
+# {{ ansible_managed }}
+
+groups:
+ - name: {{ item }}
+ {{ {'rules': prometheus_server_rules[item]} | to_nice_yaml(indent=2, width=1337) | indent(4) }}