Skip to content

Conversation

@AritraDey-Dev
Copy link
Member

Part of #2785

Stop reporting non-errors (as in: no action needed) as errors. Define separate metrics for "casual fails" if needed.

Description

Adds tetragon_warnings_total metric for non-critical errors to reduce noise in tetragon_errors_total. (see commit)

Example Output:

# HELP tetragon_warnings_total The total number of Tetragon warnings. For internal use only.
# TYPE tetragon_warnings_total counter
tetragon_warnings_total{type="process_metadata_username_ignored_not_in_host_namespaces"} 0

Changelog

Added tetragon_warnings_total metric to separate non-critical issues from actual errors.

@AritraDey-Dev AritraDey-Dev requested a review from a team as a code owner December 9, 2025 10:04
@netlify
Copy link

netlify bot commented Dec 9, 2025

Deploy Preview for tetragon ready!

Name Link
🔨 Latest commit 3502235
🔍 Latest deploy log https://app.netlify.com/projects/tetragon/deploys/6937f413f48f3b0008a2fa09
😎 Deploy Preview https://deploy-preview-4416--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 project configuration.

Right now, tetragon_errors_total counts things that aren't really errors, like ProcessMetadataUsernameIgnoredNotInHost. This happens a lot in containers and isn't something we usually need to fix, but it's spamming the error metrics.

This change adds a new tetragon_warnings_total metric for these kinds of 'casual fails'. I moved ProcessMetadataUsernameIgnoredNotInHost over to this new warning metric so the main error count is actually useful for spotting real problems.

Signed-off-by: Aritra Dey <[email protected]>
@kevsecurity kevsecurity added the release-note/minor This PR introduces a minor user-visible change label Jan 8, 2026
Copy link
Contributor

@kevsecurity kevsecurity left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-note/minor This PR introduces a minor user-visible change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants