any idea on node-reboot promQL query

76 views
Skip to first unread message

Deeraj V

unread,
Apr 27, 2022, 9:43:16 AM4/27/22
to Prometheus Users
Hello Friends,

I would like to knw the query for node/host reboot alerts for alert manager.

I had used one  query which is giving wrong alerts, which is not matching the need.

changes(node_boot_time_seconds{job="kubernetes-service-endpoints"} [1h])* on(instance) group_left(nodename) group(node_uname_info{})by(instance,nodename)>0

or 
changes(node_boot_time_seconds{job="kubernetes-service-endpoints"} [1h])

Can you please suggest us better way of query to get reboot alert.

Thanks


Reply all
Reply to author
Forward
0 new messages