From 9c4c946e30f04449b2c223c87c464cec010363ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian-Samuel=20Geb=C3=BChr?= Date: Tue, 15 Aug 2023 10:00:47 +0200 Subject: [PATCH] Document adding alert rules --- docs/services/prometheus.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/services/prometheus.md b/docs/services/prometheus.md index a0b79241..0d2e2d4f 100644 --- a/docs/services/prometheus.md +++ b/docs/services/prometheus.md @@ -86,6 +86,16 @@ prometheus_hostname: prometheus.example.com # prometheus_basic_auth_password: '' ``` +### Adding alert rules + +``` +# The alert rules were manually created in /mash/prometheus/config/alert.yml +# any update must be made there +# Setting this variable will tell prometheus to use the file you created +prometheus_config_rule_files_additional: + - "/etc/prometheus/alert.yml" +``` + ## Recommended other services - [Grafana](grafana.md) - a web-based tool for visualizing your Prometheus metrics (time-series)