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

cmd/ocprometheus: Allow decoding enumerated values #65

Open RavuAlHemio opened 2 years ago

RavuAlHemio commented 2 years ago

Some string values represent an enumerated value that can be easily converted to a numeric value (such as interface speeds into the number of bits per second). Introduce a configuration option decodeenum that allows specifying such a mapping. Additionally, update the ocprometheus README to reflect this change.

kalebris commented 2 years ago

Any news on this getting pulled? This would be a great feature add IMHO.