diff --git a/software/dashboard/README.md b/software/dashboard/README.md index 5ae119c..537cdc0 100644 --- a/software/dashboard/README.md +++ b/software/dashboard/README.md @@ -12,3 +12,19 @@ To connect Grafana to our Influx-DB, you have to create a `token`in Influx-DB. You can use this token to create a connection from Grafana to Influx-DB. ![Connection](./docs/images/database-connection.png) +After having a conneciton to a database you can easily create an own dashboard in Grafana. + +Here's the demo snippet (directly copyied from Influx Data Explorer) and the screen shot + +``` +from(bucket: "test") + |> range(start: v.timeRangeStart, stop: v.timeRangeStop) + |> filter(fn: (r) => r["_measurement"] == "msg") + |> filter(fn: (r) => r["_field"] == "value") + |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false) + |> yield(name: "mean") +``` + +![Example Dashboard](./docs/images/grafana-example-dashboard.png) + + diff --git a/software/dashboard/docs/images/grafana-example-dashboard.png b/software/dashboard/docs/images/grafana-example-dashboard.png new file mode 100644 index 0000000..cac204f Binary files /dev/null and b/software/dashboard/docs/images/grafana-example-dashboard.png differ