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

Deprecated Metrics Usage (kube-state-metrics) #2053

Open
AuHoppe opened this issue Nov 9, 2023 · 0 comments
Open

Deprecated Metrics Usage (kube-state-metrics) #2053

AuHoppe opened this issue Nov 9, 2023 · 0 comments

Comments

@AuHoppe
Copy link

AuHoppe commented Nov 9, 2023

Issue

The v2 release of kube-state-metrics removes several deprecated metrics with some usage here.

Additional Context

Referenced at: https://github.com/kubernetes/kube-state-metrics/blob/release-1.9/docs/README.md#metrics-deprecation

Resolution

charts/prometheus/templates/prometheus-alerts-configmap.yaml should be updated to use the new forms for the affected metrics:

  • kube_pod_container_resource_requests_cpu_cores ~ kube_pod_container_resource_requests{resource="cpu",unit="core"}
  • kube_pod_container_resource_requests_memory_bytes ~ kube_pod_container_resource_requests{resource="memory",unit="byte"}
  • kube_node_status_capacity_pods ~ kube_node_status_capacity{resource="pods",unit="integer"}
  • kube_node_status_allocatable_cpu_cores ~ kube_node_status_allocatable{resource="cpu",unit="core"}
  • kube_node_status_allocatable_memory_bytes ~ kube_node_status_allocatable{resource="memory",unit="byte"}
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

No branches or pull requests

1 participant