I would like to create an alert in Prometheus for a REST API, if the API is not available 99% of the time. I am new to prometheus expression. Could you please help me to create an expression to trigger this ALERT. For example if i have a counter failed_counter that tracks the http failures. Please help.
Asked
Active
Viewed 129 times
0
-
How is possible to know if the REST is unavailable using a "counter"? I think a "gauge" is needed, isn't it? – Marcelo Ávila de Oliveira Mar 22 '21 at 18:18
1 Answers
0
- Assuming that you are looking to implement a SLO strategy: Please, read this post
implementing-slos-using-prometheus
You can use the following tool for that: SLO generator.
This website could be helpful as well:
- You can combine with black-box exporter

erasmolpa
- 1
- 2