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

Feature: on rate-of-change event monitoring #257

Open
jbemmel opened this issue Oct 18, 2023 · 1 comment
Open

Feature: on rate-of-change event monitoring #257

jbemmel opened this issue Oct 18, 2023 · 1 comment

Comments

@jbemmel
Copy link

jbemmel commented Oct 18, 2023

For certain paths, it may make sense to filter updates unless the value is changing more frequently than expected.
For example, a counter for dropped packets might change occasionally, but if it happens too often the user would want to know

Is there a way to specify a rate-of-change filter for subscriptions? e.g. if a path changes more often than "n times per second/minute/hour"

@karimra
Copy link
Collaborator

karimra commented Oct 18, 2023

gNMIc exposes a prometheus counter called number_of_received_subscribe_response_messages_total. This metrics is tracked per target/per subscription.
If you want to calculate it per path (not per subscription) you can use the starlark processor to keep track of certain received paths and calculate their rate of change. The rate can be emitted as a new metric by the processor.

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

2 participants