Re: [prometheus-users] server uptime

2023-02-21 Thread Stuart Clark
On 21/02/2023 09:56, sri L wrote: Thanks for your reply Julius Volz. Yes, we are monitoring servers with Node Exporter. We are looking for Uptime average based on calendar Month instead of last 30 days. For example, February Month it should give the uptime average for 28days i.e., 1st Feb to 28

Re: [prometheus-users] server uptime

2023-02-21 Thread sri L
Thanks for your reply Julius Volz. Yes, we are monitoring servers with Node Exporter. We are looking for Uptime average based on calendar Month instead of last 30 days. For example, February Month it should give the uptime average for 28days i.e., 1st Feb to 28th feb On Saturday, February 18,

Re: [prometheus-users] server uptime

2023-02-17 Thread Julius Volz
Assuming you are monitoring your servers via something like the Node Exporter, and you want the trailing 30-day upness percentage, you could use the Node Exporters "up" metric like this: avg_over_time(up{job="node"}[30d]) * 100 This is assuming that the scrape interval is not changing over th

[prometheus-users] server uptime

2023-02-16 Thread sri L
Hi all, I am looking for server uptime percentage metrics on a monthly basis Example: If server is down for 60hrs out of 720hrs of a month the uptime has to show 91.66% in dashboard Please suggest if you have a relevant expression to serve this purpose Thanks -- You received this message beca