Creating Dashboard in Grafana

Follow the steps mentioned in this page to write data into InfluxDB database.

This section will teach you how to create a New Dashboard in Grafana and Query data from the InfluxDB Database.

Creating your first dashboard:

  • Open your web browser and go to http://localhost:3000/

  • Sign in with your credentials.

  • Click the New Dashboard item under the Dashboards icon in the side menu.

  • On the dashboard, click Add an empty panel.

  • Go to the Query tab in the New Dashboard/Edit panel view.

  • Select your Data Source in the Query options.

  • Use the following Flux Query to query the data from the InfluxDB Database (Bucket)

from(bucket: v.defaultBucket)
  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)
  |> aggregateWindow(every: v.windowPeriod, fn: mean)
  |> filter(fn: (r) => r["_measurement"] == "")
  |> filter(fn: (r) => r["signal"] == "")
  |> yield(name: "mean")
  • Select the Time Range for which the data has to be viewed.

You will be able to view the data in the Graphical View.

Repeat the process by adding new Panels and Editing the CAN Signal Name.

Last updated

© Influx Technology LTD