Skip to content

Releases: FUSAKLA/promruval

v3.8.0

06 Mar 13:05
Compare
Choose a tag to compare
  • 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 and promruval validation-docs -o text
  • Fixed: Some minor validations descriptions fixes
  • Fixed: In the validation description use Rule instead of All rules for the all rules scope
  • Refactor: Improve unmarshaling, validation and defaults for regexp params of validators

v3.7.0

25 Feb 20:23
Compare
Choose a tag to compare
  • Added: New validation expressionDoesNotUseLabelsForMetricRegexp
  • Added: New validation expressionUsesOnlyAllowedLabelValuesForMetricRegexp

v3.6.2

07 Feb 09:02
Compare
Choose a tag to compare
  • Fixed: Invalid internal name of the newExpressionDoesNotUseClassicHistogramBucketOperations validator causing that it wasn't possible to disable the validator

v3.6.1

01 Dec 22:46
2168dc2
Compare
Choose a tag to compare
  • 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

01 Dec 22:39
6401cfa
Compare
Choose a tag to compare
  • 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

31 Oct 22:36
Compare
Choose a tag to compare
  • 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

30 Oct 15:34
Compare
Choose a tag to compare
  • Fixed: ⚠️ Ignore white spaces around rule names in the disabled_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 the prometheus section of the config to set custom headers in the Prometheus requests
  • Added: new option negativeRegexp to the hasSourceTenantsForMetrics validation, see the docs
  • Added: new validator recordedMetricNameDoesNotMatchRegexp to check if the recorded metric name does not match the regexp

v3.3.0

03 Oct 21:42
Compare
Choose a tag to compare
  • 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

16 Aug 11:11
45f1684
Compare
Choose a tag to compare
  • Added: Build of windows and darwin and support for arm architectures in CI

v3.1.0

14 Aug 14:42
Compare
Choose a tag to compare
  • Added: New validator expressionUsesOnlyAllowedLabelsForMetricRegexp to check if the expression uses only allowed labels for the metric.