Hey guys, quick question on inputs.gnmi with an on_change subscription:
When a subscribed gNMI path is deleted on the target, the device sends an event indicating the deletion. I confirmed this using gNMIC. However, Telegraf doesn’t seem to emit any corresponding message to the output. Am I missing a configuration setting or does Telegraf not support emitting “delete” events from gNMI subscriptions?
In this minimal example I am trying to get notified when the description of the interface ethernet-1/1 of host srl1 changes and also when it gets deleted. However deletion doesn’t emit anything even though there is an event. My outputs seem to never contain something like “update” or “delete” anyway (even though the gNMI message includes this), so I don’t even know how I would go about distinguishing between updates and deletes in the first place.
I think this might be the same question as Gnmi plugin - notifications from 2021 but it was never answered unfortunately…
It seems like such a basic feature that shouldn’t be missing from this product but maybe I overlooked something. I didn’t read the full code but I found some passages skimming through it that might be the reason why deletes are not handled (at the very least in my case).
I have an idea for what it should look like… and if you need me to come up with a better one, let me know.
Maybe deletion should be handled as an update, but with all fields blank or removed to overwrite InfluxDB entries. I attempted to create an execd that does something similar using windowed set comparison; that is, until I read this topic (thank you kvn299) and realized gnmi has deletes. This feature, or a correct variation of it, would be really helpful to my team so we can migrate from POC to full-scale deployment. I will try to investigate how gnmic does it and hopefully share some insights soon as to what the best approach is here. Introduction - gNMIc .