Releases: FUSAKLA/promruval
Releases · FUSAKLA/promruval
v3.8.0
- Added: New option
onlyIf
to the validation rule config allowing to specify conditions that must be met for the rule to be applied. See the docs or examples. - Fixed: Unified text validation description in running
promruval validate
andpromruval validation-docs -o text
- Fixed: Some minor validations descriptions fixes
- Fixed: In the validation description use
Rule
instead ofAll rules
for the all rules scope - Refactor: Improve unmarshaling, validation and defaults for regexp params of validators
v3.7.0
- Added: New validation
expressionDoesNotUseLabelsForMetricRegexp
- Added: New validation
expressionUsesOnlyAllowedLabelValuesForMetricRegexp
v3.6.2
- Fixed: Invalid internal name of the
newExpressionDoesNotUseClassicHistogramBucketOperations
validator causing that it wasn't possible to disable the validator
v3.6.1
- Fixed: FIxed the
expressionUsesOnlyAllowedLabelsForMetricRegexp
validator that might return false positives when used on more complex expressions with vector matching and functions using labels.
v3.6.0
- Added: Configuration file can now be in Jsonnet format if the config file name ends with
.jsonnet
and it will get automatically evaluated.
v3.5.0
- Added: New validation
expressionDoesNotUseClassicHistogramBucketOperations
to avoid queries fragile because of the classic histogram bucket operations.
See the docs for more info expressionDoesNotUseClassicHistogramBucketOperations - Changed:
⚠️ revert the ENV expansion in config file since it was breaking and caused issues (it was a stupid idea) - Fix: Avoid panic when validating unsupported file type and revert to previous behavior when any file was treated as a rule file regardless of the extension.
The only exception are.jsonnet
files that are evaluated first.
v3.4.0
- Fixed:
⚠️ Ignore white spaces around rule names in thedisabled_validation_rules
annotation CSV format (Thanks @jmichalek13 !) - Added:
⚠️ Support ENV expansion in the config file in format$ENV_VAR
or${ENV_VAR}
- Changed:
⚠️ The cache format is now scoped by source tenants (internal change, no action required) - Changed: Uses structured logging
- Added: new
httpHeaders
field in theprometheus
section of the config to set custom headers in the Prometheus requests - Added: new option
negativeRegexp
to thehasSourceTenantsForMetrics
validation, see the docs - Added: new validator
recordedMetricNameDoesNotMatchRegexp
to check if the recorded metric name does not match the regexp
v3.3.0
- Changed: Upgrade to go 1.23
- Changed: Upgrade prometheus dependencies
- Changed: Upgrade other dependencies
- Changed: Enable experimental functions in PromQL parser by default, to forbid them use a new validator
expressionDoesNotUseExperimentalFunctions
- Added: New validator
expressionDoesNotUseExperimentalFunctions
to check if the expression does not use experimental functions - Added: New validator
expressionUsesUnderscoresInLargeNumbers
that requires using underscores as separators in large numbers in expressions
v3.2.0
- Added: Build of windows and darwin and support for arm architectures in CI
v3.1.0
- Added: New validator
expressionUsesOnlyAllowedLabelsForMetricRegexp
to check if the expression uses only allowed labels for the metric.