add request err with api not enabled to alerting

Signed-off-by: junotx <junotx@126.com>
This commit is contained in:
junotx
2021-01-19 10:50:56 +08:00
parent 5467b2a1a3
commit 3a0e089129
2 changed files with 17 additions and 2 deletions

View File

@@ -39,6 +39,7 @@ var (
ErrThanosRulerNotEnabled = errors.New("The request operation to custom alerting rule could not be done because thanos ruler is not enabled")
ErrAlertingRuleNotFound = errors.New("The alerting rule was not found")
ErrAlertingRuleAlreadyExists = errors.New("The alerting rule already exists")
ErrAlertingAPIV2NotEnabled = errors.New("The alerting v2 API was not enabled")
ruleLabelNameMatcher = regexp.MustCompile(`[a-zA-Z_][a-zA-Z0-9_]*`)
)