admin管理员组

文章数量:1127089

I want to get the total downtime time for a specific time span.

This is my query so far:

(100 / count by (service) (up{namespace="my-namespace"})) * count by (service) (up{namespace="my-namespace"} == 1)

I think the best approach is to get the average availability of a time span and multiply that by the time span. But I don't know how to incorporate the time component. count_over_time seems not to work with by. I am also open to better approaches.

I appreciate your help.

本文标签: Getting server down time via prometheusStack Overflow