cloudflare / pint

Prometheus rule linter/validator
https://cloudflare.github.io/pint/
Apache License 2.0
880 stars 53 forks source link

Include query fragments in alerts/template #1176

Closed prymitive closed 1 month ago

github-actions[bot] commented 1 month ago

Benchmark diff:

goos: linux
goarch: amd64
pkg: github.com/cloudflare/pint/cmd/pint
cpu: AMD EPYC 7763 64-Core Processor                
              │   old.txt   │              new.txt               │
              │   sec/op    │   sec/op     vs base               │
FindEntries-4   39.90m ± 3%   39.87m ± 1%       ~ (p=0.971 n=10)
CheckRules-4     8.521 ± 2%    8.517 ± 2%       ~ (p=0.912 n=10)
geomean         583.1m        582.8m       -0.06%

              │   old.txt    │               new.txt               │
              │     B/op     │     B/op      vs base               │
FindEntries-4   27.41Mi ± 0%   27.41Mi ± 0%       ~ (p=0.353 n=10)
CheckRules-4    971.8Mi ± 0%   972.6Mi ± 0%       ~ (p=0.123 n=10)
geomean         163.2Mi        163.3Mi       +0.04%

              │   old.txt   │              new.txt               │
              │  allocs/op  │  allocs/op   vs base               │
FindEntries-4   131.9k ± 0%   131.9k ± 0%       ~ (p=0.475 n=10)
CheckRules-4    14.13M ± 0%   14.13M ± 0%       ~ (p=0.165 n=10)
geomean         1.365M        1.365M       +0.01%
codecov-commenter commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 94.91%. Comparing base (7651ec9) to head (1331c38).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1176 +/- ## ========================================== + Coverage 94.88% 94.91% +0.02% ========================================== Files 104 104 Lines 12302 12366 +64 ========================================== + Hits 11673 11737 +64 Misses 480 480 Partials 149 149 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.