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

kube_namespace_labels metrics missing #25380

Closed
Mapmo opened this issue Apr 25, 2024 · 4 comments
Closed

kube_namespace_labels metrics missing #25380

Mapmo opened this issue Apr 25, 2024 · 4 comments
Assignees
Labels
kube-state-metrics solved tech-issues The user has a technical issue about an application

Comments

@Mapmo
Copy link

Mapmo commented Apr 25, 2024

Name and Version

bitnami/kube-metrics 4.0.4

What architecture are you using?

amd64

What steps will reproduce the bug?

On Kubernetes cluster with rke2 v1.29.0, the Prometheus metrics kube_namespace_labels disappeared after upgrading to the latest kube-prometheus version. Other Kube metrics are still getting collected as before. The namespace labels were not changed and are still there.

Are you using any custom parameters or values?

Not updating anything related to kube-metrics when deploying the helm chart

What is the expected behavior?

Seeing metrics for kube_namespace_labels

What do you see instead?

Not seeing them

@Mapmo Mapmo added the tech-issues The user has a technical issue about an application label Apr 25, 2024
@github-actions github-actions bot added the triage Triage is needed label Apr 25, 2024
@github-actions github-actions bot removed the triage Triage is needed label Apr 26, 2024
@github-actions github-actions bot assigned jotamartos and unassigned carrodher Apr 26, 2024
@jotamartos
Copy link
Contributor

Hi @Mapmo,

Thank you for using Bitnami. It seems that's expected from version 2.10.x

kubernetes/kube-state-metrics#2297

Please configure the required parameters using the extraArgs field

diff --git a/bitnami/kube-state-metrics/values.yaml b/bitnami/kube-state-metrics/values.yaml
index 7ca8c8bcf3..0a83cd1ec3 100644
--- a/bitnami/kube-state-metrics/values.yaml
+++ b/bitnami/kube-state-metrics/values.yaml
@@ -129,7 +129,8 @@ image:
 ## Example:
 ## extraArgs:
 ##    metric-labels-allowlist: pods=[*]
-extraArgs: {}
+extraArgs:
+  metric-labels-allowlist: namespaces=[*]
 ## @param command Override default container command (useful when using custom images)
 ##
 command: []

Screenshot 2024-05-07 at 11 20 23

@Mapmo
Copy link
Author

Mapmo commented May 12, 2024

Thank you @jotamartos . So this is an intended functionality that makes newer version non-backward compatible with older versions?

@jotamartos
Copy link
Contributor

It seems they change the way the application works. You can create an issue in their repos to get more information about the change.

@Mapmo
Copy link
Author

Mapmo commented May 13, 2024

Okay, thank you very much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kube-state-metrics solved tech-issues The user has a technical issue about an application
Projects
None yet
Development

No branches or pull requests

3 participants