RizkyRajitha / mosquitto_mqtt_exporter

A Mosquitto Mqtt Broker metric exporter for Prometheus
MIT License
2 stars 0 forks source link

identifier rejected when running via docker #20

Open rohmattriindra opened 1 year ago

rohmattriindra commented 1 year ago

Hi @RizkyRajitha

I got an issue when the exporter running via docker.

2023/01/13 13:01:41 brokerAddress :  xxx:1883
2023/01/13 13:01:41 username :  xxxx
2023/01/13 13:01:41 mosquitto_mqtt_exporter listening on port :  9992
mosquitto_mqtt_exporter v
A Mosquitto Mqtt Broker metric exporter for Prometheus

2023/01/13 13:01:41 Error connecting to mqtt broker
identifier rejected

after investigation seems the issue occurred due to too many end block code in the variable password

the variable password should be ${password} not${password}} https://github.com/RizkyRajitha/mosquitto_mqtt_exporter/blob/master/Dockerfile#L28

After change with proper config, the exporter is running properly

image
RizkyRajitha commented 1 year ago

Hi @rohmattriindra ,

thank you very much for this contribution . i will update this.