gnmic icon indicating copy to clipboard operation
gnmic copied to clipboard

FR: Report meta-data on subscriptions / targets

Open jbemmel opened this issue 1 year ago • 4 comments

Not sure if something like this is already possible, but just in case: It would be helpful for gnmic to expose meta-data on configured subscriptions / targets

For example, report the status of the gRPC connection and the time of the most recent gRPC heartbeat and/or event. This could then be used in dashboards to verify that the intended monitoring connections are up, and events are being received

jbemmel avatar May 03 '23 14:05 jbemmel

https://github.com/openconfig/gnmic/pull/89 looks like it may be in this area?

jbemmel avatar May 03 '23 14:05 jbemmel

This is possible using gNMIc internal metrics which are exposed on a prometheus endpoint. There you have access to the number of received gNMI Subscribe responses per target/per subscription. You can calculate the rate of msgs received, if it goes to zero for longer than the sample-interval/heartbeat-interval --> trigger an alert.

karimra avatar May 03 '23 18:05 karimra

It would be helpful if gnmic would do this calculation, providing a simple Boolean flag

jbemmel avatar May 03 '23 19:05 jbemmel

This issue is stale because it has been open for 12 months with no activity.

github-actions[bot] avatar May 03 '24 01:05 github-actions[bot]