Monitoring¶
wis2box has built-in monitoring functions based on Prometheus, Loki and Grafana.
The Grafana endpoint can be visualized at http://localhost/monitoring.
Grafana uses two data sources to display monitoring data:
Prometheus: actively ‘scrapes’ data from the configured prometheus-client exporters every X seconds
Loki: logging endpoint for the Docker containers that compose the wis2box
Prometheus exporters for wis2box¶
The exporters for wis2box are based on the Prometheus Python Client
metrics_collector: collects data on filesystem
mqtt_metric_collector: collects data on messages published, using an mqtt-session subscribed to the wis2box-broker
Loki logging¶
The logs of the following Docker containers are sent to Loki:
mqp-publisher
wis2box
wis2box-ui
mosquitto
wis2box-api
wis2box-auth