Hi All,

I am getting all my Job status(Around 15 jobs) and configuration status of 
those jobs in prometheus metrics format like below
#Job Details in metrics format
Schedule_Job{job_name="Job1",} 1.0
Schedule_Job{job_name="Job2",} 1.0
Schedule_Job{job_name="Job3",} 1.0
Schedule_Job{job_name="...",} 1.0
Schedule_Job{job_name="....",} 1.0
Schedule_Job{job_name="Job14",} 1.0
Schedule_Job{job_name="Job15",} 0.0

#Job config Details in metrics format
Schedule_Job{Config_details="config1",} 1.0
Schedule_Job{Config_details="config2",} 1.0
Schedule_Job{Config_details="config3",} 1.0
Schedule_Job{Config_details="config4",} 1.0
Schedule_Job{Config_details="config5",} 1.0
Schedule_Job{Config_details="...",} 1.0
Schedule_Job{Config_details="....",} 1.0
Schedule_Job{Config_details="config10",} 1.0
Schedule_Job{Config_details="config11",} 1.0


Grafana was mapped using prometheus datasource and able to retrieve above 
data in Grafana

I am able to display all job status/configuration status like 
Active/inactive in Grafana. 

I like to validate all the jobs status and config status. 

If all job/config value return "1" then we need to show the graph in Green 
color.
If any one of the job/config value return "0" then we need to show the 
Graph in Red.

Can some one Guide me how to do this.

Thanks & 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/d1bd16ef-740b-42db-838b-3b12b17ea31dn%40googlegroups.com.

Reply via email to