-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
832 additions
and
241 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,6 +45,7 @@ templated | |
Thanos | ||
TLS | ||
toc | ||
tokenize | ||
uber | ||
UI | ||
unmarshal | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# This example shows how to enforce labels where the label value itself can | ||
# be a string with one or more sub-strings in it. | ||
# For example when you have a 'components' label that can be any of these: | ||
# components: 'db' | ||
# components: 'api' | ||
# components: 'proxy' | ||
# components: 'db api' | ||
# components: 'db api proxy' | ||
# components: 'proxy api db' | ||
# components: 'proxy db' | ||
|
||
rule { | ||
# Only run these checks on alerting rules. | ||
# Ignore recording rules. | ||
match { | ||
kind = "alerting" | ||
} | ||
label "components" { | ||
# Every alerting rule must have this label set. | ||
required = true | ||
# If any alerting rule fails our check pint will report his as a 'Bug' | ||
# severity problem, which will fail (exit with non-zero exit code) | ||
# when running 'pint lint' or 'pint ci'. | ||
# Set it to 'warning' if you don't want to fail pint runs. | ||
severity = "bug" | ||
# Split label value into sub-strings using the 'token' regexp. | ||
# \w is an alias for [0-9A-Za-z_] match. | ||
# Notice that we must escape '\' in HCL config files. | ||
token = "\\w+" | ||
# This is the list of allowed values. | ||
values = [ | ||
"db", | ||
"api", | ||
"proxy", | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.