Need help to understand how to validate the metrics

16 views
Skip to first unread message

gopal...@gmail.com

unread,
Apr 8, 2021, 11:00:47 AM4/8/21
to Prometheus Users
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
Reply all
Reply to author
Forward
0 new messages