example dashboard

This commit is contained in:
simonox 2023-02-23 17:27:22 +01:00
parent dc227ff505
commit 06ad6d088d
2 changed files with 16 additions and 0 deletions

View file

@ -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)

Binary file not shown.

After

Width:  |  Height:  |  Size: 214 KiB