You should use the default (Server)
The screenshot on the first post is from an older Grafana version. (we should update it)
On Grafana v5.1.4 (commit: a5fe24fcc) it looks like:
Ps: Whenever we have issues configuring stuff from a tutorial, it is better to open up a new thread, describe the steps that we took, and link to the tutorial. This keeps the tutorial thread “clean” with useful info that people can grab and less troubleshooting stuff
I have a stack of items I want to graph as part of the Matrix Theme that patrick setup and ive been following the tutorial. My systeminfo items are all OpenHAB_XXXX
Am I right in saying this strategy is sufficent to allow population of the items into Grafana for me to log?
The * is not a wildcard that can be applied to the Item names. It is used for <groupName>*
You should create/define/use a Group, assign all Items that you would like to persist their states to that Group and then persist the Group members.
/etc/openhab2/persistence/influxdb.persist
Strategies {
everyHour : "0 0 * * * ?"
everyDay : "0 0 0 * * ?"
default = everyChange
}
Items {
// persist all members of gInfluxDB Group on: everyChange, everyHour, everyDay
gInfluxDB* : strategy = everyChange, everyHour, everyDay
}
In your items:
Group gInfluxDB
itemtype itemname "labeltext [stateformat]" <iconname> (gInfluxDB) [...]
It seems that you have also installed in parallel the MysqlPersistenceService.
If you are not using it, uninstall it from PaperUI (Add-ons->Persistence)
You can have of course multiple Persistence Services running.
Just to let you know, @Confectrician and @jswim788
Things seems to be working just great now, after I changed to persistens file on your suggestions… Thank you both very much!
Im using iframe in my Custom Widget which displays the graph correctly but it doesnt appear dynamic. I can see its updating in the webui of Grafana but not in my HabPanel widget. Any ideas?
Ive added some new items with group ‘gSpeedtest’ , here is my persistence file. Grafana doesnt appear to show the items and if i show measurements in the influx client they are not listed…
Strategies {
everyHour : "0 0 * * * ?"
everyDay : "0 0 0 * * ?"
default = everyChange
}
Items {
// persist all members of gInfluxDB Group on: everyChange, everyHour, everyDay
gInfluxDB*,gSpeedtest* : strategy = everyChange, everyHour, everyDay
}