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

Add message filter support #19

Open
dead-claudia opened this issue Jun 30, 2024 · 0 comments
Open

Add message filter support #19

dead-claudia opened this issue Jun 30, 2024 · 0 comments

Comments

@dead-claudia
Copy link
Owner

The idea is this: pass -f/--message-filter. Its value is a name:pattern pair where name is the filter name and pattern is a POSIX regexp. (When name is repeated, last one wins.)

In the metrics, they're all returned with a filter="name" label. Any name works if it doesn't have a colon, and invalid patterns are dropped from the output (causing metrics to be missed). The lack of metrics can be used as a signal to check the logs, which will indicate the filter is wrong.

This is a simplified version of #10 that doesn't require fussing with extra files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant