Open nitzan-tz opened 1 year ago
As mentioned in #236, poll subscriptions are only supported when running in "cli" mode. gNMIc will not poll the targets automatically, it has to be manually triggered by the user. Why not use a stream/sample subscription ?
Some outputs are not available via GNMI subscription, for example, I didn't find a way to get the number of arp entries per vrf but this output is available via the cli command "show ip arp vrf all summary".
So I thought to use gnmic to get it via the following gnmi path "cli:/show ip arp vrf all summary". It is working from the cli with get request but not as subscription (I think it is some eos behavior ).
If gnmic could run the same get request every X seconds and then parse the JSON output via jq processor I can do this type of monitoring,
Thanks
Nitzan
+1 on this request
+1 as well
I agree this would be useful. My use case is collecting component temperatures from Nokia PSS-8 devices and export them into Prometheus.
Some values can be streamed, but component temperatures notably are only available via Get request. So ideally I could subscribe to some paths and perform a low-frequency periodic Get on some others and have all of them exposed together in /metrics for Prometheus.
Following #236 Some outputs are not available in subscription paths (Count the number of arp or mac addresses for example ) and I would like to collect them from CLI output as JSON. Arista has CLI origin to collect some eos command output. If I am doing a get request from CLI it gives me the results as a JSON but I would like to do the same from the config file to collect it periodically. I tried with the following configuration
And I see the following logs and I dont get any data from the device (Also verify it with tcpdump ) `
`
Is it possible to run such request periodically from the config file ? If yes what I am doing wrong ?