Skip to content

Prometheus metrics exporter for the Mosquitto message broker

License

Notifications You must be signed in to change notification settings

jryberg/mosquitto-exporter

 
 

Repository files navigation

Mosquitto Exporter

Prometheus exporter for the Mosquitto MQTT message broker.

There is a docker image available:

docker run \
  -p 9234:9234 jryberg/mosquitto-exporter:v0.7.0 \
  --endpoint tcp://mosquitto:1883

Usage:

NAME:
   mosquitto-exporter - Prometheus exporter for broker metrics

USAGE:
   mosquitto-exporter [global options] command [command options] [arguments...]

VERSION:
   v0.7.1 (ee8fb65dd54c0d0f2f4f51da723188317bb09679), go1.21.4

AUTHORS:
   Johan Ryberg <johan@securit.se>
   Arturo Reuschenbach Puncernau <a.reuschenbach.puncernau@sap.com>
   Fabian Ruff <fabian.ruff@sap.com>

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]
   --reset-metrics, -r             Reset metrics when loosing connection to broker (default: true) [$RESET_METRICS]
   --help, -h                      show help
   --version, -v                   print the version

About

Prometheus metrics exporter for the Mosquitto message broker

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Go 90.3%
  • Makefile 6.7%
  • Dockerfile 2.2%
  • Shell 0.8%