aristanetworks / goarista

Fairly general building blocks used in Arista Go code and open-sourced for the benefit of all.
Apache License 2.0
213 stars 68 forks source link

interface counter collection doesn't work in EOS 4.25.2F+ #54

Closed noredistribution closed 3 years ago

noredistribution commented 3 years ago

In EOS 4.25.2F-EFT1 ocprometheus can throw something similar when subscribing to openconfig paths via gnmi/OCTA:

collected metric "intfCounter" { label:<name:"countertype" value:"out-unicast-pkts" > label:<name:"intf" value:"Management1" > gauge:<value:1.84297e+06 > } was collected before with the same name and label values

This is due to nil prefix in the openconfig notif which can cause ocprometheus to complain about having handled a metric already

noredistribution commented 3 years ago

fixed by https://github.com/aristanetworks/goarista/commit/fad53805024eae86fc7d1d74308863fb30ecda92