Skip to content

Commit

Permalink
Fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
prymitive committed Dec 18, 2021
1 parent 55fb0e1 commit 1bb0f09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
7 changes: 0 additions & 7 deletions docs/examples/config.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ rule {
label_keys = true
label_values = true
}

# Check if all queries use correct vector matching rules
vector_matching {}
}

rule {
Expand Down Expand Up @@ -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 {
Expand Down
10 changes: 2 additions & 8 deletions docs/examples/simple.hcl
Original file line number Diff line number Diff line change
@@ -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"
}
}

0 comments on commit 1bb0f09

Please # to comment.