Graph a group item in grafana?

I have this:



Strategies {
    everyHour   : "0 0 * * * ?"
    everyDay    : "0 0 0 * * ?"

    default = everyChange
}

Items {
// persist all members of gInfluxDB Group on: everyChange, everyHour, everyDay
    gInfluxDB*,gSpeedtest*,gSpotify*  : strategy = everyChange, everyHour, everyDay
    gPowerUsage*,gPowerConsumption*   : strategy = everyChange, everyHour, everyDay
    * : strategy = restoreOnStartup
}

Add this line:

    gPowerUsage,gPowerConsumption   : strategy = everyChange, everyHour, everyDay

Roger!


Strategies {
    everyHour   : "0 0 * * * ?"
    everyDay    : "0 0 0 * * ?"

    default = everyChange
}

Items {
// persist all members of gInfluxDB Group on: everyChange, everyHour, everyDay
    gInfluxDB*,gSpeedtest*,gSpotify*  : strategy = everyChange, everyHour, everyDay
    gPowerUsage*,gPowerConsumption*   : strategy = everyChange, everyHour, everyDay
    gPowerUsage : strategy = everyChange, everyHour, EveryDay
    * : strategy = restoreOnStartup
}

Is that influxdb?

Use mapdb for restore on startup instead
It only stores the last value so doesn’t grow in size
This way you can restrict you storage in inlux to the stuff you really want to store over time

Yes, its influx.

I just want to have the gPowerUsage graphed for the month, so I think I need Influx. I dont need gPowerConsumption

Yes you need influx but think about what you want to store overtime and build your persistence file and groups accoringly

For example I have a group called Persist
And I persist all the items in the group (including groups…)

All my items go in mapdb for the restore on startup