Telegraf + InfluxDB + Grafana (not TIG).
I'm using a Raspberry Pi 3B to run this stack. There are two inputs in the telegraf.conf
file used to get the temperature and the frequency of the CPU.
- Rename the
.env.sample
to.env
, and change the environment variables according to your needs. - Take a quick look at the
telegraf.conf
file, as you need to configure some variables according to the ones you just set in step #1.
docker-compose up -d
- InfluxDB:
<ipaddress>:8086
- Grafana:
<ipaddress>:3000
- Access the Grafana dashboard.
- Go to Configuration/DataSources and add a new one (InfluxDB).
- Make sure the query language is set to Flux.
- Set the URL (
http://influxdb:8086
). - Disable basic auth.
- Fill the following fields in the InfluxDB Details section:
- Organization: The organization you set in the
.env
file. - Token: The token you set in the
.env
file. - Default bucket: The default bucket you set in the
.env
file.
- Access the Grafana dashboard.
- Go to Dashboards/Import and import the
dashboard.json
file.