mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-23 17:22:46 +03:00
4046fbb18c
Found via `codespell -S ./venv,./glances/outputs,*.svg -L hart,bu,te,statics`
30 lines
582 B
ReStructuredText
30 lines
582 B
ReStructuredText
.. _mqtt:
|
|
|
|
MQTT
|
|
========
|
|
|
|
You can export statistics to an ``MQTT`` server. The
|
|
connection should be defined in the Glances configuration file as
|
|
following:
|
|
|
|
.. code-block:: ini
|
|
|
|
[mqtt]
|
|
host=localhost
|
|
port=883
|
|
tls=true
|
|
user=glances
|
|
password=glances
|
|
topic=glances
|
|
topic_structure=per-metric
|
|
|
|
and run Glances with:
|
|
|
|
.. code-block:: console
|
|
|
|
$ glances --export mqtt
|
|
|
|
The topic_structure field aims at configuring the way stats are exported to MQTT (see #1798):
|
|
- per-metric: one event per metric (default behavior)
|
|
- per-plugin: one event per plugin
|