I have the following metric in prometheus:

(test_case_failed_count_2nd{job="audit-test"}> 0) or 
(test_case_failed_count_1st{job="audit-test"} > 0)

ElementValue
test_case_failed_count_2nd{endpoint="http",job="audit-test",namespace="push-gateway",pod="prometheus-pushgateway-dc9cd85b6-8bk76",service="prometheus-pushgateway",summary_html_severe="None"}
 
1
test_case_failed_count_1st{endpoint="http",job="audit-test",namespace="push-gateway",pod="prometheus-pushgateway-dc9cd85b6-8bk76",service="prometheus-pushgateway",summary_html_warning="http://localhost/reports/2020-06-22_13-13-39/summary.html"}
 
8

Now when I am doing *and* operation:

(test_case_failed_count_2nd{job="audit-test"}> 0) and 
(test_case_failed_count_1st{job="audit-test"} > 0)

it returns blank... 

i need to get a bool true value or some data so that above expression I can 
put in prometheus rule for alert.
could any one please help..

-- 
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/709d719e-ff92-430c-8c94-ab1c6c9ead65o%40googlegroups.com.

Reply via email to