Hello,

I am trying to find the execution time of a cronjob in k8s cluster which is 
obtained using:

kube_job_status_completion_time{namespace="some-namespace", job_name=~
"some-job-\\d+"} - kube_job_status_start_time{namespace="some-namespace", 
job_name=~"some-job-\\d+"}

The result of the query is time in seconds. However when I plot this as a 
graph the start point and end point of the line are way too off. I have 
attached a graph of a job having execution time of 184 seconds but the 
start time shown on graph is 4:33:30am and end time is 06:06:15am for the 
value of 184.

I don't seem to understand:

   -  If the Kubernetes job lasted for few minutes how can the value have 
   such start time and end time.
   - How to potentially debug such scenarios? 

Regards,
Rajat

-- 
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/4422a9e3-b9b0-48f9-85d2-279521f3a293%40googlegroups.com.

Reply via email to