From 1bb0f0977ac6675fd743083855d34301a4f7f680 Mon Sep 17 00:00:00 2001 From: Lukasz Mierzwa Date: Sat, 18 Dec 2021 14:34:57 +0000 Subject: [PATCH] Fix examples --- docs/examples/config.hcl | 7 ------- docs/examples/simple.hcl | 10 ++-------- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/docs/examples/config.hcl b/docs/examples/config.hcl index a18f6502..f4275a03 100644 --- a/docs/examples/config.hcl +++ b/docs/examples/config.hcl @@ -28,9 +28,6 @@ rule { label_keys = true label_values = true } - - # Check if all queries use correct vector matching rules - vector_matching {} } rule { @@ -96,10 +93,6 @@ rule { keep = ["job"] } - # Enable series check that will warn if alert rules are using time series - # not present in any of configured Prometheus servers. - series {} - # Enable cost checks that will print the number of returned time series and try # to estimate total memory usage assuming that each series require 4KB of memory. cost { diff --git a/docs/examples/simple.hcl b/docs/examples/simple.hcl index 1573c6a8..4772447e 100644 --- a/docs/examples/simple.hcl +++ b/docs/examples/simple.hcl @@ -1,13 +1,7 @@ -# This is a simplified config that only uses "series" check to report any -# alert that is using time series not found in Prometheus server. +# This is a simplified config that only uses a single Prometheus +# server for all checks. prometheus "prod" { uri = "https://prod.example.com" timeout = "1m" } - -rule { - series { - severity = "bug" - } -}