Skip to content

Visualizing data with Grafana

Todd Radel edited this page May 9, 2018 · 2 revisions

If everything is working, you should now be able to pull up the Grafana UI, configure the connection to InfluxDB, and start exploring. If you are using the sample project, the UI is forwarded from the Grafana server to http://localhost:3000. Log in as "admin" with password "admin".

Configuring the data source

Before we can create dashboards, we need to tell Grafana where to get data from. From the Grafana home screen, click "Create your first data source", or go to the sidebar menu and choose Configuration > Data Sources and then click "Add a data source".

Fill in the settings as follows:

  • Name: any name you like.
  • Default: checked.
  • Type: InfluxDB.
  • HTTP:
  • Auth: leave all options unchecked.
  • Advanced HTTP Settings: leave options at defaults.
  • InfluxDB Details:
    • Database: telegraf
    • User: telegraf
    • Password: telegraf
  • Min time interval: 10s (matches the Telegraf agent interval setting)

Make sure your screen looks like this screenshot, then click "Save & Test". You should see messages indicating that "Data source is working" and "Data source saved". If not, double check your entries.

Now you can move on to importing the sample dashboards, or read about which metrics are important to monitor.