Hi,

Is there any way to use conditional operation in Prometheus like below

*(?(cond)true|false)*

Based on condition, i need to execute the another metrics

Example:

(?(Job_staus{job="XYZ_Job"}) XYZ_Record_Processed |XYZ_RecordFailed)

In above example checking XYZ job status periodically, if the Job is 
Active/True, 
then it should execute  *XYZ_Record_Processed  *metrics
else it should execute *XYZ_RecordFailed *metrics

Regards
Gopalakrishnan B

-- 
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/c8ef6b45-582f-4f0e-bfa4-07b1995f096en%40googlegroups.com.

Reply via email to