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

Bad token detector metrics #3228

Merged
merged 6 commits into from
Jan 9, 2025
Merged

Bad token detector metrics #3228

merged 6 commits into from
Jan 9, 2025

Conversation

squadgazzz
Copy link
Contributor

@squadgazzz squadgazzz commented Jan 9, 2025

Description

Adds Prometheus metrics for driver's bad token detector strategies, so it will be possible to show how many tokens were marked as bad by each solver and strategy. It would be helpful to identify solvers that perform as not expected and to analyze the work of each detection strategy individually.

How to test

Create 2 grafana panels: the one that shows detected tokens by solver and another - by strategy.

Added hotfix label to deploy it asap.

@squadgazzz squadgazzz requested a review from a team as a code owner January 9, 2025 09:24
@squadgazzz squadgazzz added the hotfix Labels PRs that should be applied into production right away label Jan 9, 2025
Copy link
Contributor

@MartinquaXD MartinquaXD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because cached token quality information can expire these metrics will end up a bit unintuitive. Since we always increase the counter and never lower it we can only use it with a rate() function in grafana. I think this is fine to avoid making this more complex. Just wanted to point it out since this seems non-obvious.

Also half of these changes can be reverted with fact that the solver name is unreliable information for the simulation based metrics.

@squadgazzz squadgazzz enabled auto-merge (squash) January 9, 2025 16:31
@squadgazzz squadgazzz merged commit b46fc72 into main Jan 9, 2025
11 checks passed
@squadgazzz squadgazzz deleted the bad-token-detector-metrics branch January 9, 2025 17:18
@github-actions github-actions bot locked and limited conversation to collaborators Jan 9, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
hotfix Labels PRs that should be applied into production right away
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants