Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add namespace metadata to deleted pods metric #341

Merged
merged 1 commit into from
Jun 7, 2021
Merged

Conversation

linki
Copy link
Owner

@linki linki commented May 18, 2021

Adds the namespace as a label to the pods_deleted metric. The result looks like this:

Fixes #150

# HELP chaoskube_pods_deleted_total The total number of pods deleted
# TYPE chaoskube_pods_deleted_total counter
chaoskube_pods_deleted_total{namespace="baz"} 1
chaoskube_pods_deleted_total{namespace="api"} 1
chaoskube_pods_deleted_total{namespace="cassandra"} 1
chaoskube_pods_deleted_total{namespace="foobar"} 1
chaoskube_pods_deleted_total{namespace="default"} 27
chaoskube_pods_deleted_total{namespace="kube-system"} 31
chaoskube_pods_deleted_total{namespace="github"} 1
chaoskube_pods_deleted_total{namespace="myspace"} 1
chaoskube_pods_deleted_total{namespace="other"} 4

@linki linki mentioned this pull request May 18, 2021
@linki linki merged commit d1b517d into master Jun 7, 2021
@linki linki deleted the pod-deleted-metric branch June 7, 2021 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add killed pod metric
1 participant