Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix checker bugs #621

Merged
merged 3 commits into from
Jul 7, 2021
Merged

Fix checker bugs #621

merged 3 commits into from
Jul 7, 2021

Conversation

litleleprikon
Copy link
Contributor

PR Summary

This PR fixes known bugs in checker that appeared during implementation of improved advanced mode

Relates #428

@litleleprikon litleleprikon changed the title fix(checker): Fix checker alone metrics handling Fix checker bugs Mar 18, 2021
@coveralls
Copy link

coveralls commented Apr 8, 2021

Coverage Status

Coverage increased (+0.06%) to 72.853% when pulling cecab4b on feature/fix-checker-bugs into 3224585 on master.

@litleleprikon litleleprikon force-pushed the feature/fix-checker-bugs branch 2 times, most recently from cd4b130 to bee3ba8 Compare April 8, 2021 14:28
@litleleprikon litleleprikon marked this pull request as ready for review April 21, 2021 11:32
@litleleprikon litleleprikon requested a review from a team as a code owner April 21, 2021 11:32
@codecov-commenter
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (master@3224585). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #621   +/-   ##
=========================================
  Coverage          ?   69.36%           
=========================================
  Files             ?      172           
  Lines             ?     7668           
  Branches          ?        0           
=========================================
  Hits              ?     5319           
  Misses            ?     2014           
  Partials          ?      335           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3224585...f29b69f. Read the comment docs.

If trigger is simple we can enable realtime alerting for it. This means
that for each new metric we will check that trigger with new metric.

Simple trigger means that this trigger have only one metric. This is
able only if trigger have target without wildcards and braces.

With support for metrics with tags we need to add a new condition for
simple trigger% it should not use metrics with tags.

In this commit we rewrite simple trigger check.
Fix handling of alone metrics. Change behavior of alone targets
population. Before the behavior were the same for alone metrics targets
and regular targets. This led to situations when alone metrics occurred
in regular targets that should not happen. Npw alone metrics are
populated in different way than regular metrics.

Relates #428
When appear unrecognized error checker is just write warning to log and
do not mark trigger with exception state. This behavior is changed to
mark trigger with exception state.
@litleleprikon litleleprikon force-pushed the feature/fix-checker-bugs branch 2 times, most recently from 43c0054 to 16b8205 Compare June 2, 2021 09:32
@litleleprikon litleleprikon merged commit 19e0c12 into master Jul 7, 2021
@litleleprikon litleleprikon deleted the feature/fix-checker-bugs branch July 7, 2021 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants