There is a docker compose available to quickly deploy the agent.
Simply download the content of the folder and run:
docker compose up -d
We need to configure the agent to send its metrics to NATS. We assume here that
NATS is running on our monitoring server which has the IP 192.168.1.101, as in
the diagram below.
The following command will create the configuration file glouton.conf to tell
the agent the address of our MQTT server and the metrics it should send.
Terminal window
# This should be the address where the NATS MQTT server is running
We can check the logs to make sure everything is working:
Terminal window
dockerlogs-fglouton
You should see the message Open Source MQTT connection established.
To sum up what we did, we set up a working Time Series Database to store our
metrics, we started a MQTT server, SquirrelDB Ingestor and a monitoring agent.
The agent sends its metrics to MQTT, SquirrelDB Ingestor reads them and write
them in SquirrelDB.
Firstly, we should create a config file /etc/glouton/conf.d/80-community-edition.conf used to tell the agent the address of our MQTT server and the metrics it should send.
You can do this with the following commands: