-
Notifications
You must be signed in to change notification settings - Fork 376
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 policyfilter metrics #2282
fix policyfilter metrics #2282
Conversation
This reverts commit 425f91e. Signed-off-by: Kornilios Kourtis <[email protected]>
Commit 425f91e ("policyfiltermetrics: Remove error label") was reverted in the previous patch included some misc fixes for log messages. Add them here. Signed-off-by: Kornilios Kourtis <[email protected]>
f896496
to
4366929
Compare
3f78912
to
05bec85
Compare
✅ Deploy Preview for tetragon ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for tackling this! I left two comments, ideally we should init the metric with all possible label combinations.
This patch implements ErrorLabel() for generating error labels for metrics. This fixes an issue with the previous implementation where the cardinality of the error_type label was potentially unbounded. Signed-off-by: Kornilios Kourtis <[email protected]>
05bec85
to
c0fe8ab
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good!
323ec1e removed the error label from metrics. This PR reverts this patch and fixes the issue of potentially high cardinality in metrics.