You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
treat MQTT2PROM_MQTT_PASSWORD environment variable as a secret file path e.g. /var/run/secrets/mqtt-credential. Useful when docker secret or external credential management agents handle the secret file.
132
134
```
133
135
The logging is implemented via [zap](https://github.com/uber-go/zap). The logs are printed to `stderr` and valid log levels are
134
136
those supported by zap.
@@ -267,6 +269,26 @@ Then load that file into the environment before starting the container:
267
269
ghcr.io/hikhvar/mqtt2prometheus:latest
268
270
```
269
271
272
+
#### Example use with Docker secret (in swarm)
273
+
274
+
Create a docker secret to store the password(`mqtt-credential` in the example below), and pass the optional `treat-mqtt-password-as-file-name` command line argument.
0 commit comments