Skip to content

[kubernetes_state] Distinguish between CronJobs and Jobs in metrics #7446

Open
@jfmyers9

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions