diff --git a/app/vmalert/README.md b/app/vmalert/README.md index 2b12c8011f..e89fb259c0 100644 --- a/app/vmalert/README.md +++ b/app/vmalert/README.md @@ -195,9 +195,7 @@ Like in Alertmanager you can define [reusable templates](https://prometheus.io/d to share same templates across annotations. Just define the templates in a file and set the path via `-rule.templates` flag. -For example, the template can be defined as following: - -`/etc/vmalert/templates/global/common.tpl` +For example, template `grafana.filter` can be defined as following: ``` {{ define "grafana.filter" -}} @@ -210,9 +208,7 @@ For example, the template can be defined as following: {{- end -}} ``` -And used in annotations: - -`/etc/vmalert/rules/project/rule.yaml` +And then used in annotations: ```yaml groups: diff --git a/docs/vmalert.md b/docs/vmalert.md index c2365a8f7a..d7e4d53b01 100644 --- a/docs/vmalert.md +++ b/docs/vmalert.md @@ -199,9 +199,7 @@ Like in Alertmanager you can define [reusable templates](https://prometheus.io/d to share same templates across annotations. Just define the templates in a file and set the path via `-rule.templates` flag. -For example, the template can be defined as following: - -`/etc/vmalert/templates/global/common.tpl` +For example, template `grafana.filter` can be defined as following: ``` {{ define "grafana.filter" -}} @@ -214,9 +212,7 @@ For example, the template can be defined as following: {{- end -}} ``` -And used in annotations: - -`/etc/vmalert/rules/project/rule.yaml` +And then used in annotations: ```yaml groups: