/TIG

My custom TIG stack

MIT LicenseMIT

My custom TIG stack

Telegraf + InfluxDB + Grafana (not TIG).

Important note

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.

Before running the stack

  1. Rename the .env.sample to .env, and change the environment variables according to your needs.
  2. 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.

Run the stack

docker-compose up -d

Dashboards

  • InfluxDB: <ipaddress>:8086
  • Grafana: <ipaddress>:3000

Configure the database in Grafana

  1. Access the Grafana dashboard.
  2. Go to Configuration/DataSources and add a new one (InfluxDB).
  3. Make sure the query language is set to Flux.
  4. Set the URL (http://influxdb:8086).
  5. Disable basic auth.
  6. 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.

Import the dashboard

  1. Access the Grafana dashboard.
  2. Go to Dashboards/Import and import the dashboard.json file.