Skip to content

Commit

Permalink
chore: bump version 2.6.0
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Chodur <[email protected]>
  • Loading branch information
FUSAKLA committed Dec 6, 2023
1 parent 50ae730 commit 45214f3
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 35 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [v2.6.0] - 2023-12-06
- Added new validator `expressionWithNoMetricName`, see its [docs](docs/validations.md#expressionwithnometricname). Thanks @tizki !
- Upgrade to go 1.21
- Upgrade all dependencies

Expand Down
68 changes: 33 additions & 35 deletions docs/validations.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,36 @@
# Supported validations

- [Labels](#labels)
- [hasLabels](./validations.md#haslabels)
- [hasAnyOfLabels](./validations.md#hasanyoflabels)
- [doesNotHaveLabels](./validations.md#doesnothavelabels)
- [labelMatchesRegexp](./validations.md#labelmatchesregexp)
- [labelHasAllowedValue](./validations.md#labelhasallowedvalue)
- [expressionDoesNotUseLabels](./validations.md#expressiondoesnotuselabels)
- [nonEmptyLabels](./validations.md#nonemptylabels)
- [exclusiveLabels](./validations.md#exclusivelabels)
-
- [Annotations](#annotations)
- [hasAnnotations](./validations.md#hasannotations)
- [doesNotHaveAnnotations](./validations.md#doesnothaveannotations)
- [hasAnyOfAnnotations](./validations.md#hasanyofannotations)
- [annotationMatchesRegexp](./validations.md#annotationmatchesregexp)
- [annotationHasAllowedValue](./validations.md#annotationhasallowedvalue)
- [annotationIsValidURL](./validations.md#annotationisvalidurl)
- [annotationIsValidPromQL](./validations.md#annotationisvalidpromql)
- [validateAnnotationTemplates](./validations.md#validateannotationtemplates)
-
- [PromQL expression](#promql-expression)
- [expressionDoesNotUseOlderDataThan](./validations.md#expressiondoesnotuseolderdatathan)
- [expressionDoesNotUseRangeShorterThan](./validations.md#expressiondoesnotuserangeshorterthan)
- [expressionDoesNotUseIrate](./validations.md#expressiondoesnotuseirate)
- [validFunctionsOnCounters](./validations.md#validfunctionsoncounters)
- [rateBeforeAggregation](./validations.md#ratebeforeaggregation)
- [expressionCanBeEvaluated](./validations.md#expressioncanbeevaluated)
- [expressionUsesExistingLabels](./validations.md#expressionusesexistinglabels)
- [expressionSelectorsMatchesAnything](./validations.md#expressionselectorsmatchesanything)
- [expressionWithNoMetricName]
-
- [Alert](#alert)
- [forIsNotLongerThan](./validations.md#forisnotlongerthan)
- [Supported validations](#supported-validations)
- [Labels](#labels)
- [`hasLabels`](#haslabels)
- [`doesNotHaveLabels`](#doesnothavelabels)
- [`hasAnyOfLabels`](#hasanyoflabels)
- [`labelMatchesRegexp`](#labelmatchesregexp)
- [`labelHasAllowedValue`](#labelhasallowedvalue)
- [`nonEmptyLabels`](#nonemptylabels)
- [`exclusiveLabels`](#exclusivelabels)
- [Annotations](#annotations)
- [`hasAnnotations`](#hasannotations)
- [`doesNotHaveAnnotations`](#doesnothaveannotations)
- [`hasAnyOfAnnotations`](#hasanyofannotations)
- [`annotationMatchesRegexp`](#annotationmatchesregexp)
- [`annotationHasAllowedValue`](#annotationhasallowedvalue)
- [`annotationIsValidURL`](#annotationisvalidurl)
- [`annotationIsValidPromQL`](#annotationisvalidpromql)
- [`validateAnnotationTemplates`](#validateannotationtemplates)
- [PromQL expression](#promql-expression)
- [`expressionDoesNotUseLabels`](#expressiondoesnotuselabels)
- [`expressionDoesNotUseOlderDataThan`](#expressiondoesnotuseolderdatathan)
- [`expressionDoesNotUseRangeShorterThan`](#expressiondoesnotuserangeshorterthan)
- [`expressionDoesNotUseIrate`](#expressiondoesnotuseirate)
- [`validFunctionsOnCounters`](#validfunctionsoncounters)
- [`rateBeforeAggregation`](#ratebeforeaggregation)
- [`expressionCanBeEvaluated`](#expressioncanbeevaluated)
- [`expressionUsesExistingLabels`](#expressionusesexistinglabels)
- [`expressionSelectorsMatchesAnything`](#expressionselectorsmatchesanything)
- [`expressionWithNoMetricName`](#expressionwithnometricname)
- [Alert](#alert)
- [`forIsNotLongerThan`](#forisnotlongerthan)

## Labels

Expand Down Expand Up @@ -111,7 +109,7 @@ params:
firstLabel: "severity"
firstLabelValue: "critical" # Optional, if not set, only presence of the label excludes the second label
secondLabel: "page"
secondLabelValue: "true" # Optional, if set, fails only if also the second label value matches
secondLabelValue: "true" # Optional, if set, fails only if also the second label value matches
```

## Annotations
Expand Down Expand Up @@ -269,7 +267,7 @@ instance.

> Fails if an expression doesn't use an explicit metric name.

Verifies that any of the selectors in the expression (eg `up{foo="bar"}`) has a metric name. The metric name can appear before the curly braces or in `__name__` label. Fails if an expressions doesn't have a metric name.
Verifies that all of the selectors in the expression (eg `up{foo="bar"}`) has a metric name. The metric name can appear before the curly braces or in `__name__` label. Fails if an expressions doesn't have a metric name.

## Alert

Expand Down

0 comments on commit 45214f3

Please sign in to comment.