napalm-automation / napalm-logs

Cross-vendor normalisation for network syslog messages, following the OpenConfig and IETF YANG models
https://napalm-logs.readthedocs.io/en/latest/
Apache License 2.0
141 stars 43 forks source link

Fix prometheus label displaying #317

Closed Koaxiel closed 4 years ago

Koaxiel commented 4 years ago

Avoid to display the 'b' prefix on the device_os label with Python3:

napalm_logs_server_messages_with_identified_os_total{device_os="b'junos'"} 7.66888986e+08
napalm_logs_server_messages_with_identified_os_total{device_os="b'eos'"} 246288.0
coveralls commented 4 years ago

Coverage Status

Coverage remained the same at 43.018% when pulling 76b6a5c69a82d5193a20007888bd9d58c9e31854 on Koaxiel:fix_prometheus_label into 94ff8ad31d5135401b65d396760cac8d765ba805 on napalm-automation:develop.