openconfig / gnmic

gNMIc is a gNMI CLI client and collector
https://gnmic.openconfig.net
Apache License 2.0
163 stars 51 forks source link

FR: Report meta-data on subscriptions / targets #120

Open jbemmel opened 1 year ago

jbemmel commented 1 year ago

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 commented 1 year ago

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

karimra commented 1 year ago

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.

jbemmel commented 1 year ago

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

github-actions[bot] commented 2 months ago

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