running on InfluxDB cloud and telegraf on my server
I’m trying to set a cell that shows me the uptime of a specific co0ntainer the problem is it’s giving me the result in nanoseconds is there a way to change it to days?
@5aberd You can use Flux to do this at query time. With map()
you can add a new column that divides the reported uptime value by the number of nanoseconds in a day:
// ...
|> map(fn: (r) => ({ r with uptimeDays: r._value / int(v: 1d) }))