InfluxDB, Telegraf and Grafana on a Raspberry PI

The combination of InfluxDB, Telegraf and Grafana lets you collect and visualise almost any data. Here is who is doing what:

  • InfluxDB is a time-series database
  • Telegraf is an agent collecting data and sending it to InfluxDB
  • Grafana is a tool to visualize data using dashboard. Is supports, InfluxDB as a data source, amonst many others.

The result of this tutorial will be a nice dashboard of the system usage on a Raspberry PI.

Install the components

InfluxDB and Telegraf are available from the InfluxData apt repo.

Grafana on the other hand does not provide an apt repo for the ARM arch. We therefore download and install the Debian package manually.


Telegraf and InfluxDB provide a default configuration and start to collect data immediately. We can directly proceed to Grafana.

Open the Grafana UI using a browser: http://192.168.0.xx:3000.

The default username is admin/admin.

Add the following InfluxDB data source:

We’re pretty much done now. The only thing missing is a dashboard showing the data. You can either create your own or import mine:

Next steps

This setup is completely unsecured. Unless you trust all members of your network, you should definitely enable authentication on InfluxDB as well as Grafana.

Telegraf has an impressive list of input plugins to collect data. You can easily collect whatever data your application exposes and then create a Grafana dashboard for it.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.