Currently I am calculating uptime % using below query.
But if I try to test by restarting a service that is if i restart at 11:00 and if i try to test at 11:05 it should show 100% availability, but in my case it is not showing that way.
Please help out with correct calculation for uptime %
Query
avg_over_time(up{instance="$instance", job!="jobid"}[${__range_s}s])*100
I use this query: avg_over_time(availability:max_uptime:percentage{service=~"$applications"}[$__range])
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.