How are the metrics being fetched?
Is the data present in Prometheus?

If the response code is recorded in the labels, a simple regex can do the 
job.

For Eg:

server_redirections{response_code~="3.*"} > 10


The above will send an alert if 3xx count is greater 10 and rule can be 
changed accordingly.

On Friday, March 13, 2020 at 12:23:31 PM UTC+5:30, Pooja Chauhan wrote:
>
> I have to monitor few server which has 302 redirection,i want to configure 
> these to Prometheus with alert when it goes down.Please suggest how to do 
> it as I am facing many challenges.
>
>
>

-- 
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/c8132472-f936-43b7-8322-aba38a38de83%40googlegroups.com.

Reply via email to