From 1030bcdf5f98393e6a204845c8408e04ffb92e57 Mon Sep 17 00:00:00 2001 From: Martin Chodur Date: Thu, 31 Oct 2024 23:45:28 +0100 Subject: [PATCH] fix: e2e tests Signed-off-by: Martin Chodur --- examples/human_readable.html | 1 + examples/human_readable.md | 1 + examples/rules/rules.yaml | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/human_readable.html b/examples/human_readable.html index fd200b5..7bbe23b 100644 --- a/examples/human_readable.html +++ b/examples/human_readable.html @@ -56,6 +56,7 @@

check-formatting

check-recording-rules

diff --git a/examples/human_readable.md b/examples/human_readable.md index 31a221a..7ddf9da 100644 --- a/examples/human_readable.md +++ b/examples/human_readable.md @@ -41,6 +41,7 @@ Validation rules: check-formatting - All rules expression is well formatted as would `promtool promql format` do or similar online tool such as https://o11y.tools/promqlparser/ - All rules expression does not do any binary operations between histogram buckets, it can be dangerous because of inconsistency in the data if sent over remote write for example + - All rules fails if any rule uses an emoji in metric name or labels check-recording-rules - Recording rule Recorded metric name does not match regexp: ^foo_bar$ diff --git a/examples/rules/rules.yaml b/examples/rules/rules.yaml index 3b2a24a..d0d9557 100644 --- a/examples/rules/rules.yaml +++ b/examples/rules/rules.yaml @@ -68,9 +68,9 @@ groups: title: test alert playbook: http://foo.bar/nonexisting/playbook - # ignore_validations: hasLabels,expressionUsesExistingLabels,hasLabels,hasAnyOfAnnotations,hasAnnotations + # ignore_validations: hasLabels,expressionUsesExistingLabels,hasLabels,hasAnyOfAnnotations,hasAnnotations,expressionCanBeEvaluated,expressionIsWellFormatted - name: testUTF8 limit: 10 rules: - alert: test - expr: sum by ("foo.bar") (up) + expr: sum by ("foo.bar") ({"up"})