From 35f7a3d09ecf1e87bb49c89d1e640691221e62e8 Mon Sep 17 00:00:00 2001 From: Owen Diehl Date: Wed, 30 Sep 2020 14:37:02 -0400 Subject: [PATCH] shows cortextool lint command for loki in alerting docs (#2705) Signed-off-by: Cyril Tovena --- docs/sources/alerting/_index.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/sources/alerting/_index.md b/docs/sources/alerting/_index.md index 959ea41de6f6..76b8d1f51f3a 100644 --- a/docs/sources/alerting/_index.md +++ b/docs/sources/alerting/_index.md @@ -171,6 +171,9 @@ Because the rule files are identical to Prometheus rule files, we can interact w An example workflow is included below: ```sh +# lint the rules.yaml file ensuring it's valid and reformatting it if necessary +cortextool rules lint --backend=loki ./output/rules.yaml + # diff rules against the currently managed ruleset in Loki cortextool rules diff --rule-dirs=./output --backend=loki