avg_over_time(platform_uptime_state[1h]) * 100

On Wed, Jul 20, 2022 at 4:55 AM Shubham Shrivastav <
[email protected]> wrote:

> Hi all,
>
> I have a two-node cluster that I'm trying to monitor.
>
> We send a custom metric on individual nodes
> # HELP platform_uptime_state  Overall platform status is 1 when up, 0
> otherwise
> # TYPE platform_uptime_state gauge
> platform_uptime_state 1
>
> The cluster is expected to be UP when at least one of the nodes has
> platform_uptime_state set to 1.
>
> I need to calculate the cluster uptime percent since the cluster was
> started, but I'm not able to formulate a query.
>
>
>
> Any help is appreciated!
>
> TIA,
> Shubham
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Prometheus Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/prometheus-users/66466c99-6b1f-4a77-9ba2-b93a58bf6969n%40googlegroups.com
> <https://groups.google.com/d/msgid/prometheus-users/66466c99-6b1f-4a77-9ba2-b93a58bf6969n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/CABbyFmq3nNhtd%2B-0hozdWUcz3jKw21xW3muV6M9bt8tEnF1umQ%40mail.gmail.com.

Reply via email to