Grafan report for SLA using blackbox exporter and prometheus

14 views
Skip to first unread message

Ani Prabhakaran

unread,
Jun 15, 2020, 8:35:37 AM6/15/20
to Prometheus Users
Hello Everyone,
   I have a requirement to show my system's up time as a report, so for that I am using Blackbox exporter, Prometheus and Grafana.
   Till now I was showing my system's up time in percentage  for specific time range using Grafana with following expression
   avg_over_time(probe_success{instance="myhost-url",job="blackbox-http",module="http_2xx"}[7d]) * 100"

   Now there is a new requirement, were I have to show Up time percentage of my system per day for a week (including current day). 
To put it in visualized form ,report has to be like bar graph, each bar graph represent percentage of system up time for a day, so when showing report for week, there will be 7 bar, one per day
The Y- axis represent up time percentage % , while X-axis represent the date (for last 7 day including current date).
Is this possible to represent this bar graph in Grafana, if yes would like to hear from you guys.

Thanks in advance.
Ani.
Reply all
Reply to author
Forward
0 new messages