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

kprobemetrics: Fix collecting missed metrics #2797

Merged
merged 1 commit into from
Aug 14, 2024

Conversation

lambdanis
Copy link
Contributor

When collecting metrics from kernel, Tetragon needs to aggregate them in userspace maps to avoid duplicate labelsets, which cause metrics server errors. This was done incorrectly, using a pointer to missedKey struct as the aggregation key. Use missedKey struct directly.

When collecting metrics from kernel, Tetragon needs to aggregate them in
userspace maps to avoid duplicate labelsets, which cause metrics server errors.
This was done incorrectly, using a pointer to missedKey struct as the
aggregation key. Use missedKey struct directly.

Signed-off-by: Anna Kapuscinska <[email protected]>
@lambdanis lambdanis added kind/bug Something isn't working area/metrics Related to prometheus metrics release-note/misc This PR makes changes that have no direct user impact. labels Aug 13, 2024
@lambdanis lambdanis requested a review from a team as a code owner August 13, 2024 23:30
@lambdanis lambdanis requested a review from tixxdz August 13, 2024 23:30
@jrfastab jrfastab requested a review from olsajiri August 14, 2024 05:07
@jrfastab jrfastab merged commit 99f611e into main Aug 14, 2024
43 checks passed
@jrfastab jrfastab deleted the pr/lambdanis/fix-metrics-server branch August 14, 2024 05:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/metrics Related to prometheus metrics kind/bug Something isn't working release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants