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

Replace process cache evictions and misses metrics #2857

Merged
merged 4 commits into from
Sep 2, 2024

Conversation

lambdanis
Copy link
Contributor

@lambdanis lambdanis commented Sep 1, 2024

Stop reporting tetragon_errors_total metric with "type" label values:
process_cache_miss_on_get
process_cache_evicted
process_cache_miss_on_remove

Evictions and misses are not errors, this is just cache's life, sometimes you
hit, sometimes you miss, and sometimes you gotta evict a process.

They are now reported by more intuitive metrics:
tetragon_process_cache_evictions_total
tetragon_process_cache_misses_total{operation=~"get|remove"}

Part of #2785

@lambdanis lambdanis added area/metrics Related to prometheus metrics release-note/minor This PR introduces a minor user-visible change labels Sep 1, 2024
@lambdanis lambdanis requested review from mtardy and a team as code owners September 1, 2024 22:44
Copy link

netlify bot commented Sep 1, 2024

Deploy Preview for tetragon ready!

Name Link
🔨 Latest commit ef89465
🔍 Latest deploy log https://app.netlify.com/sites/tetragon/deploys/66d4ee4835272a00082610b2
😎 Deploy Preview https://deploy-preview-2857--tetragon.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Use new helpers from pkg/metrics to define custom metrics and collector.

There are no functional changes in this commit.

Signed-off-by: Anna Kapuscinska <[email protected]>
It's duplicating tetragon_errors_total{type="process_cache_evicted"}, which
will be removed in a follow up commit.

Signed-off-by: Anna Kapuscinska <[email protected]>
It's duplicating
tetragon_errors_total{type=~"process_cache_miss_on_get|process_cache_miss_on_remove"},
which will be removed in a follow up commit.

Signed-off-by: Anna Kapuscinska <[email protected]>
Stop reporting tetragon_errors_total metric with "type" label values:
process_cache_miss_on_get
process_cache_evicted
process_cache_miss_on_remove

Evictions and misses are not errors, this is just cache's life, sometimes you
hit, sometimes you miss, and sometimes you gotta evict a process.

They are now reported by more intuitive metrics:
tetragon_process_cache_evictions_total
tetragon_process_cache_misses_total{operation=~"get|remove"}

Signed-off-by: Anna Kapuscinska <[email protected]>
@lambdanis lambdanis force-pushed the pr/lambdanis/cache-metrics branch from ef89465 to c7354b0 Compare September 1, 2024 23:10
@lambdanis lambdanis merged commit fddec55 into main Sep 2, 2024
43 checks passed
@lambdanis lambdanis deleted the pr/lambdanis/cache-metrics branch September 2, 2024 13:58
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 release-note/minor This PR introduces a minor user-visible change
Projects
Development

Successfully merging this pull request may close these issues.

2 participants