Re: [prometheus-users] Append the value from one metric to the label of another metric.

2020-04-18 Thread Yagyansh S. Kumar
Btw I am struggling with the resolved alerts. I have posted the details in below mentioned thread. Would be really helpful if you can suggest something. Thread Link - https://groups.google.com/forum/#!topic/prometheus-users/LLsPBIvLIME -- You received this message because you are subscribed to

Re: [prometheus-users] Append the value from one metric to the label of another metric.

2020-04-18 Thread Yagyansh S. Kumar
Yes. Actually this case happened with me just about an hour back. probe_success and response code together can give a lot of insight. On Saturday, April 18, 2020 at 1:46:48 PM UTC+5:30, Julius Volz wrote: > > Btw., I read this again the next day and wondered what happened if there's > no HTTP st

Re: [prometheus-users] Append the value from one metric to the label of another metric.

2020-04-18 Thread Julius Volz
Btw., I read this again the next day and wondered what happened if there's no HTTP status code at all for a failed check (like if the connection couldn't be established), but luckily the BBE still exposes the status code metric in that case, but with a value of 0, so the expression still works in t

Re: [prometheus-users] Append the value from one metric to the label of another metric.

2020-04-18 Thread Yagyansh S. Kumar
Thanks a lot Julius. Btw., you could change the "=~" to just "=" because that regex is just doing a full string equality match anyway. >> Thanks for pointing it out. I recently removed 2-3 jobs from that alert, so forgot to remove the regex matcher. > >> -- >> You received this message because

Re: [prometheus-users] Append the value from one metric to the label of another metric.

2020-04-17 Thread Yagyansh S. Kumar
Thanks, Julian. Btw., you could change the "=~" to just "=" because that regex is just doing a full string equality match anyway. >> Thanks for pointing it out. I recently removed 2-3 jobs from this alert and forgot to remove the regex matcher. > > On Fri, Apr 17, 2020 at 7:06 PM Yagyansh S. K

Re: [prometheus-users] Append the value from one metric to the label of another metric.

2020-04-17 Thread Julius Volz
While you could use the "query" template function to achieve this (see https://prometheus.io/docs/prometheus/latest/configuration/template_reference/ and https://prometheus.io/docs/prometheus/latest/configuration/template_examples/), it's probably easiest to just make the alerting expression itsel

[prometheus-users] Append the value from one metric to the label of another metric.

2020-04-17 Thread Yagyansh S. Kumar
Hi. I am using Blackbox exporter to monitor my Application's and LB's HealthCheck URLs. My alert for this looks like below: - alert: ServiceHTTPChecks expr: probe_success{job=~"blackbox_Service-HealthChecks"} == 0 for: 2m labels: severity: "CRITICAL" annotations: su