Skip to content

Commit

Permalink
chore: changelog entry
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 543f66e commit 8618437
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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]

- Added new validator `expressionDoesNotUseMetrics`, see its [docs](docs/validations.md#expressiondoesnotusemetrics).

## [v2.6.0] - 2023-12-06
- Added new validator `expressionWithNoMetricName`, see its [docs](docs/validations.md#expressionwithnometricname). Thanks @tizki !
- Upgrade to go 1.21
Expand Down
5 changes: 1 addition & 4 deletions docs/validations.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ params:
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 @@ -277,9 +276,7 @@ instance.

### `expressionWithNoMetricName`

> Fails if an expression doesn't use an explicit 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.
Fails if an expression doesn't use an explicit metric name (also if used as `__name__` label) in all its selectors(eg `up{foo="bar"}`).

## Alert

Expand Down

0 comments on commit 8618437

Please sign in to comment.