SELECT
FLOOR(UNIX_TIMESTAMP(time)) as time_sec,
value,
'Your custom metric name' as metric
FROM your_sql_column_name
WHERE $__timeFilter(time)
ORDER BY time ASC;
Sorry to re-live this topic.
I’ve spent a little time researching this to no avail…
Using openhab2 on Raspberry pi 3, (openhabian), JDBC Persistance MYSQL, MariaDB, Grafana Graphing… I don’t understand where I can change the following from “value” to the desired name (ie GarageTemp, Greenhouse Temp, etc)
Hopefully this is a quick reply without consuming too many cycles from anyone’s busy day
Michael Krug shows the syntax for this but I’m not sure if this goes in Grafana or PHPMyAdmin that I’m using AND how to use the proper syntax for my specific application
Thanks Guys!!
Sounds easy enough… thanks.
I’ll have to look up how to “syntax” the .persist file.
Thanks again… this has been bugging me for a few months now… didn’t have the time to pursue.
Well this has been a waste of 2 hours trying to figure out WHY I don’t have the “Alias” option in my Metrics.
v 5.1.4
It’s enough to start looking for another graphing solution