tynany / junos_exporter

Prometheus Exporter for Junos Devices
MIT License
19 stars 8 forks source link

Examples for *_keys settings #4

Closed idl0r closed 3 years ago

idl0r commented 4 years ago

Hi,

we're currently using this format for interface descriptions: https://docs.librenms.org/Extensions/Interface-Description-Parsing/ I'm not sure if that can be used like that with your junos_exporter so I tried: `interface_description_keys:

Wich ends up weird, like: junos_interface_description{Core="",Peering="",Transit="",interface="xe-2/0/0"} 1

Could you add some examples? Could it work to parse keys like from librenms?

tynany commented 4 years ago

Apologies for the delayed response -- I completely missed this.

Librenms formatted descriptions aren't currently supported with the interface_description_keys/junos_interface_description metrics (only JSON is). Can you provide some example descriptions and how the metrics should look? I can then update the exporter appropriately.

For example, is this what you are after? Description: Transit: Telcox (ASNX) Metric: junos_interface_description{transit="Telcox (ASNX)",interface="xe-2/0/0"} 1

As you have suggested, I will also update the readme with examples of how JSON formatted descriptions correlate to the junos_interface_description metric.

tynany commented 3 years ago

Closing due to inactivity