kpetremann / mqtt-exporter

Simple generic MQTT Prometheus exporter for IoT working out of the box
https://hub.docker.com/r/kpetrem/mqtt-exporter
MIT License
110 stars 30 forks source link

fix: Exception when metric key has a slash in it #41

Closed jengo closed 1 year ago

jengo commented 1 year ago

This PR resolves the following exception

pr-error
kpetremann commented 1 year ago

Hi @jengo,

Thanks for the PR! Would it be possible for you to add a unit test as well?

jengo commented 1 year ago

@kpetremann done! I added some additional tests for the other escaping as well

kpetremann commented 1 year ago

thanks @jengo! I'll test the new version soon and then merge the PR.