Sign inSign up

wregen/mosquitto-exporter

By wregen

•Updated over 4 years ago

sapcc/mosquitto-exporter image with ability to use configuration in json

Image
0

1.1K

wregen/mosquitto-exporter repository overview

⁠Mosquitto Exporter

Prometheus exporter for the Mosquitto MQTT message broker⁠.

All credits goes to (https://github.com/sapcc/mosquitto-exporter⁠):

The solution is just small modification for my own purposes.

docker run \
  -p 9234:9234 wregen/mosquitto-exporter \
  --endpoint tcp://mosquitto:1883

⁠Usage:

NAME:
   Mosquitto exporter - Prometheus exporter for broker metrics

USAGE:
   mosquitto_exporter [global options] command [command options] [arguments...]

VERSION:
   0.8.1 (763bead), go1.18

AUTHORS:
   Arturo Reuschenbach Puncernau <[email protected]>
   Fabian Ruff <[email protected]>

COMMANDS:
     help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --endpoint value, -e value      Endpoint for the Mosquitto message broker (default: "tcp://127.0.0.1:1883") [$BROKER_ENDPOINT]
   --bind-address value, -b value  Listen address for metrics HTTP endpoint (default: "0.0.0.0:9234") [$BIND_ADDRESS]
   --user value, -u value          Username for the Mosquitto message broker [$MQTT_USER]
   --pass value, -p value          Password for the User on the Mosquitto message broker [$MQTT_PASS]
   --cert value, -c value          Location of a TLS certificate .pem file for the Mosquitto message broker [$MQTT_CERT]
   --key value, -k value           Location of a TLS private key .pem file for the Mosquitto message broker [$MQTT_KEY]
   --client-id value, -i value     Client id to be used to connect to the Mosquitto message broker [$MQTT_CLIENT_ID]
   --config value, -z value        Config in json format (default: "./config.json") [$MQTT_CONFIG]
   --help, -h                      show help
   --version, -v                   print the version

Tag summary

Content type

Image

Digest

Size

3.2 MB

Last updated

over 4 years ago

docker pull wregen/mosquitto-exporter