[kubernetes_state] Distinguish between CronJobs and Jobs in metrics #7446
Open
Description
At the moment, we detect the difference between CronJobs and Jobs by the presence of timestamp at the end of the Job name. We keep track of these failures separately, and then we increment the kubernetes_state.job.failed
and kubernetes_state.job.succeeded
counters after processing the kube-state-metrics.
Since we are already distinguishing between CronJobs and Jobs in code, would it be possible to add a way to distinguish between these two types of Jobs in the metric that we emit? Maybe a tag?
Thoughts?
Activity