Calculate uptime in days?

Hello,

I have a nice dashboard running for monitoring my Raspberry Pi and docker containers. On this dashboard there is also an uptime but it shows this in weeks. How can I change that to days. Because if I want to change that to days it shows 30000 years + instead of 159 days. It now shows 22.7 weeks.

John

This is how the query looks like :
node_time_seconds - node_boot_time_seconds

And in Panel options it shows Seconds In Standard Options → Units.

How can I change this?

You didn’t mention datasource, but good datasource is able to do a math, e.g. calculate days from seconds:

(node_time_seconds - node_boot_time_seconds)/86400

Or you may try to use Grafana transformation for that calculation.

Of course you need to set unit based on the result unit (seconds, days, …).