-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add log-only mode for metrics based bad token detection (#3203)
# Description The metrics based bad token detection has not been tested with real data yet so actively filtering out tokens based on it is pretty risky. If the logic is too naive or simply has a bug we might filter out a bunch of tokens which are actually good which could reduce the throughput of the system drastically. # Changes To increase the confidence in the system this PR introduces a log only mode for the metrics based bad token detection. In that mode no tokens will be filtered out based on the metrics but we already get logs indicating this tokens would get filtered out by it. When we start running this mode in prod we should hopefully see 2 things: 1 good tokens don't get filtered out 2 tokens which currently cause alerts like `Driver Run Error Rate Too High` should be flagged by the logic `2` would then indicate that the new logic would reduce the unactionable alerts if the feature gets enabled fully. I only added logs when we update the metrics and a token "turns bad". This should keep the noise in the logs low while still providing all the necessary information. ## How to test Deploying this to prod aids in testing the overall feature
- Loading branch information
1 parent
1294738
commit fca9a92
Showing
5 changed files
with
46 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters