kube-state-metrics

Infrastructure & DevOpsApache-2.0

Exposes Kubernetes object state as Prometheus metrics.

Latest v2.20.0 · by KubernetesWritten in GoWebsitekubernetes/kube-state-metricsRSS

Release activity

Release activity — 4 releases across 4 days in the last year. Each cell is one day; darker means more releases that day. Older weeks are hidden at this screen width.
AugSepOctNov
SundayNo releases on Jul 19, 2026No releases on Jul 26, 2026No releases on Aug 2, 2026No releases on Aug 9, 2026No releases on Aug 16, 2026No releases on Aug 23, 2026No releases on Aug 30, 2026No releases on Sep 6, 2026No releases on Sep 13, 2026No releases on Sep 20, 2026No releases on Sep 27, 2026No releases on Oct 4, 2026No releases on Oct 11, 2026No releases on Oct 18, 2026No releases on Oct 25, 2026No releases on Nov 1, 2026
MondayNo releases on Jul 20, 2026No releases on Jul 27, 2026No releases on Aug 3, 2026No releases on Aug 10, 2026No releases on Aug 17, 2026No releases on Aug 24, 2026No releases on Aug 31, 2026No releases on Sep 7, 2026No releases on Sep 14, 2026No releases on Sep 21, 2026No releases on Sep 28, 2026No releases on Oct 5, 2026No releases on Oct 12, 2026No releases on Oct 19, 2026No releases on Oct 26, 2026No releases on Nov 2, 2026
TuesdayNo releases on Jul 21, 2026No releases on Jul 28, 2026No releases on Aug 4, 2026No releases on Aug 11, 20261 release on Aug 18, 2026No releases on Aug 25, 2026No releases on Sep 1, 2026No releases on Sep 8, 2026No releases on Sep 15, 2026No releases on Sep 22, 2026No releases on Sep 29, 2026No releases on Oct 6, 2026No releases on Oct 13, 2026No releases on Oct 20, 2026No releases on Oct 27, 2026No releases on Nov 3, 2026
WednesdayNo releases on Jul 22, 2026No releases on Jul 29, 2026No releases on Aug 5, 2026No releases on Aug 12, 2026No releases on Aug 19, 2026No releases on Aug 26, 2026No releases on Sep 2, 2026No releases on Sep 9, 2026No releases on Sep 16, 2026No releases on Sep 23, 2026No releases on Sep 30, 2026No releases on Oct 7, 2026No releases on Oct 14, 2026No releases on Oct 21, 2026No releases on Oct 28, 2026No releases on Nov 4, 2026
ThursdayNo releases on Jul 23, 2026No releases on Jul 30, 2026No releases on Aug 6, 2026No releases on Aug 13, 2026No releases on Aug 20, 2026No releases on Aug 27, 2026No releases on Sep 3, 2026No releases on Sep 10, 2026No releases on Sep 17, 2026No releases on Sep 24, 2026No releases on Oct 1, 2026No releases on Oct 8, 2026No releases on Oct 15, 2026No releases on Oct 22, 2026No releases on Oct 29, 2026No releases on Nov 5, 2026
FridayNo releases on Jul 24, 2026No releases on Jul 31, 2026No releases on Aug 7, 2026No releases on Aug 14, 2026No releases on Aug 21, 2026No releases on Aug 28, 2026No releases on Sep 4, 2026No releases on Sep 11, 2026No releases on Sep 18, 2026No releases on Sep 25, 2026No releases on Oct 2, 2026No releases on Oct 9, 2026No releases on Oct 16, 2026No releases on Oct 23, 2026No releases on Oct 30, 2026No releases on Nov 6, 2026
SaturdayNo releases on Jul 25, 2026No releases on Aug 1, 2026No releases on Aug 8, 2026No releases on Aug 15, 2026No releases on Aug 22, 2026No releases on Aug 29, 2026No releases on Sep 5, 2026No releases on Sep 12, 2026No releases on Sep 19, 2026No releases on Sep 26, 2026No releases on Oct 3, 2026No releases on Oct 10, 2026No releases on Oct 17, 2026No releases on Oct 24, 2026No releases on Oct 31, 2026No releases on Nov 7, 2026

4 releases in the last year

Changelog

v2.20.0

Latest
Added 12
  • Add kube_pod_status_disruption_reason metric for pods evicted via the Eviction API
  • Add MutatingAdmissionPolicy and MutatingAdmissionPolicyBinding metrics
  • Add ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding metrics
  • Add HPA scale up/down behavior tolerance metrics
  • Add kube_node_spec_pod_cidrs metric
  • Add kube_pod_resourceclaim_info metric for DRA ResourceClaim references
Changed 3
  • kube_pod_status_reason now emits a row only for the reason that is actually set, instead of one zero/one row per known reason for every pod
  • Reduce allocations in metric generation and header sanitization
  • Implement cache.Store Bookmark and LastStoreSyncResourceVersion in MetricsStore for client-go 0.36 compatibility
Fixed 8
  • Don't panic on a Deployment with an unset rollingUpdate value
  • Serialize config reloads so one does not strand another instance
  • Rebuild clients from the current kubeconfig on reload
  • Check CRD fields instead of asserting them during discovery
  • Build each EndpointSlice hint's labels independently
  • Guard the store builder state shared with discovery
  • Read the discovery GVK cache under the lock
  • Scope the metrics handler scrape lock to reading the writers

From kube-state-metrics

v2.20.0 / 2026-08-16
Notes

Custom Resource State (CRS) metrics are now feature-frozen; no new CRS features will be accepted going forward. See #3050 for details.

  • This release builds with Go v1.26.6
  • This release builds with k8s.io/client-go: v0.36.3
Changelog
  • [CHANGE] kube_pod_status_reason now emits a row only for the reason that is actually set, instead of one zero/one row per known reason for every pod by @bhope in #3089
  • [FEATURE] Add kube_pod_status_disruption_reason metric for pods evicted via the Eviction API by @bhope in #3088
  • [FEATURE] Add MutatingAdmissionPolicy and MutatingAdmissionPolicyBinding metrics by @mrueg in #3019
  • [FEATURE] Add ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding metrics by @mrueg in #3014
  • [FEATURE] Add HPA scale up/down behavior tolerance metrics by @emmayusufu in #3015
  • [FEATURE] Add kube_node_spec_pod_cidrs metric by @emmayusufu in #3011
  • [FEATURE] Add kube_pod_resourceclaim_info metric for DRA ResourceClaim references by @cyber-slave-labs in #3005
  • [FEATURE] Add kube_pod_init_container_status_last_terminated_exitcode metric by @emmayusufu in #3000
  • [FEATURE] Add init container state_started and last_terminated_timestamp metrics by @emmayusufu in #2997
  • [FEATURE] Shard only resource mutation watch events by @jfremy-openai in #2993
  • [FEATURE] Add label generation support for ephemeral volumes in pods by @eminaktas in #2891
  • [FEATURE] Allow wildcards in annotation and label allowlists by @skoef in #2873
  • [FEATURE] Add access mode metric for PersistentVolumes by @viragvoros in #2823
  • [ENHANCEMENT] Reduce allocations in metric generation and header sanitization by @mrueg in #3060
  • [ENHANCEMENT] Implement cache.Store Bookmark and LastStoreSyncResourceVersion in MetricsStore for client-go 0.36 compatibility by @mrueg in #2965
  • [BUGFIX] Don't panic on a Deployment with an unset rollingUpdate value by @mrueg in #3083
  • [BUGFIX] Serialize config reloads so one does not strand another instance by @mrueg in #3070
  • [BUGFIX] Rebuild clients from the current kubeconfig on reload by @mrueg in #3080
  • [BUGFIX] Check CRD fields instead of asserting them during discovery by @mrueg in #3078
  • [BUGFIX] Build each EndpointSlice hint's labels independently by @mrueg in #3076
  • [BUGFIX] Guard the store builder state shared with discovery by @mrueg in #3075
  • [BUGFIX] Read the discovery GVK cache under the lock by @mrueg in #3074
  • [BUGFIX] Scope the metrics handler scrape lock to reading the writers by @mrueg in #3073
  • [BUGFIX] Skip an HPA status metric whose source is not set by @mrueg in #3071
  • [BUGFIX] Fix three issues in the server request and shutdown paths by @mrueg in #3068
  • [BUGFIX] Escape reserved characters in metric help text by @mrueg in #3067
  • [BUGFIX] Don't panic on a custom resource metric that fails to compile by @mrueg in #3066
  • [BUGFIX] Preserve pagination metadata when filtering a sharded list by @mrueg in #3065
  • [BUGFIX] Never emit the same label name twice by @mrueg in #3064
  • [BUGFIX] Don't dereference an unset EndpointSlice port number by @mrueg in #3063
  • [BUGFIX] Write headers when only a later store has metrics by @mrueg in #3061
  • [BUGFIX] Don't emit nil metrics for unparseable pod IPs by @mrueg in #3059
  • [BUGFIX] Fix wrong labels applied to the endpointslices metric by @odinuge in #3058
  • [BUGFIX] Embed tzdata so named CronJob spec.timeZone values resolve by @SteeleND in #3022
  • [BUGFIX] Prevent leaked goroutines on CRD updates by @jfremy-openai in #3007
  • [BUGFIX] Start the zombie-process reaper only once by @mrueg in #3079
  • [BUGFIX] Emit the default suspend metric value for CronJobs by @immanuwell in #2999
  • [BUGFIX] Prevent duplicate cluster-scoped metrics when using --namespaces by @emmayusufu in #2998
  • [BUGFIX] Log when a configured custom resource CRD is absent by @aryanputta in #2996
  • [BUGFIX] Handle omitted minReplicas in HPA metrics by @immanuwell in #2991
  • [BUGFIX] Stop the CRD discoverer when its context is canceled by @L3n41c in #2977
  • [BUGFIX] Guard nil Spec.Replicas before dereferencing on Deployments by @immanuwell in #2971
  • [BUGFIX] Guard nil suspend field in CronJob next-schedule metric by @immanuwell in #2970
  • [BUGFIX] Ignore non-served CRD versions in discovery by @boomer41 in #2940
  • [BUGFIX] Skip landing page registration on NewLandingPage error by @carterpewpew in #2937
  • [BUGFIX] Log when a configured custom resource CRD is not installed in the cluster by @maksimp13 in #2903
  • [BUGFIX] Handle nil path gracefully in StateSet metrics by @Br1an67 in #2884
Full Changelog
New Contributors

Full Changelog: https://github.com/kubernetes/kube-state-metrics/compare/v2.19.1...v2.20.0

View originalPermalink
How v2.20.0 went

v2.19.1

Fixed 2
  • Fix watch-list bookmarks with sharding (WatchListClient compatibility)
  • Don't panic on CronJobs with unparseable schedules
Security 2
  • Upgrade Go toolchain to address CVE-2026-42504 (GO-2026-5038)
  • Fix several high-scoring CVEs in golang.org/x/net, oauth2, sys, term, and text
View originalRead the notes
How v2.19.1 went

v2.19.0

Added 4
  • Add PreemptionByScheduler and TerminationByKubelet reasons to kube_pod_status_reason
  • Add SchedulingGated reason to kube_pod_status_reason
  • Add container label to HPA ContainerResource metrics
  • Add deployment-based sharding example
Changed 3
  • Bump to Kubernetes 1.35
  • Build with Go 1.26
  • Switch to a maintained fork of robfig/cron
Fixed 7
  • Handle DeletedFinalStateUnknown panic in the CR informer
  • Fix memory leak from orphaned CR reflector goroutines on repeated CRD discovery
  • Load CRS config when --continue-without-custom-resource-state-config-file is set and the file exists
  • Accept legacy custom_resource_config_file as a deprecated alias
  • Fix order-dependent metric loss from header deduplication
  • Avoid mutating metric families during write
  • Honor stderrthreshold when logtostderr is enabled
Security 5
  • Fix authentication bypass by moving pprof endpoints to the telemetry server and protecting them with the auth filter (GHSA-g3c8-4qh2-rhrg)
  • Bump go-jose/v4 to v4.1.4 to address CVE-2026-34986
  • Fix CVE-2026-24051 in the OpenTelemetry Go library
  • Fix CVE-2026-39883 in the OpenTelemetry Go library
  • Bump google.golang.org/grpc to v1.79.3
View originalRead the notes
How v2.19.0 went

v2.18.0

Added 7
  • Resources can be filtered via URL parameters
  • kube_job_status_ready metric
  • kube_deployment_owner metric
  • kube_deployment_status_replicas_terminating and kube_replicaset_status_terminating_replicas metrics
  • Info metric for client-go version
  • Warning logged when probe fails
  • failed condition added to kube_certificatesigningrequest_condition
Changed 8
  • endpointslices are now part of the default resources exposed as metrics, replacing endpoints
  • CronJob, HPA, and Pod metrics promoted from BETA to STABLE
  • StatefulSet metrics promoted to STABLE
  • Reduced allocations when creating metric families
  • Bumped to Kubernetes 1.34
  • Bumped exporter-toolkit dependency
  • gojsontoyaml replaced with gojq
  • Benchmarks split
Fixed 2
  • Regression that caused a panic when new versions were added to existing CustomResourceDefinitions, by reacting on WATCH updates for the CRD informer
  • Duplicate tolerations are deduplicated when generating kube_pod_tolerations
Deprecated 1
  • endpoints is deprecated and needs to be manually activated through the --resources flag
View originalRead the notes
How v2.18.0 went
v2.17.0

v2.17.0 / 2025-09-01

Added 5
  • Add new metric for pod unscheduled time tracking
  • Include reason label to kube_deployment_status_condition
  • Continue running kube-state-metrics when config file doesnt exist at startup
  • Introduce deletion timestamp metric for daemonset, statefulset, deployment, service and pdb
  • Add HorizontalPodAutoscaler created and deletionTimestamp info into metrics
Fixed 3
  • Fix index out of range in customresourcestate
  • Config file overrides apply to some fields but not other fields
  • Fix logic for plain text fallback format
View originalRead the notes
How v2.17.0 went

v2.16.0

Added 4
  • Add a reclaim_policy label to the kube_persistentvolume_info metric
  • Add pathType to kube_ingress_path
  • Introduce object limits
  • Incorporate WithAuthenticationAndAuthorization to support endpoint authentication and authorization
Changed 3
  • Use dlclark/regexp2 instead of the standard library regexp package to support lookarounds
  • Build with Golang v1.24.4 and k8s.io/client-go v0.32.6
  • Migrate linting to golangci-lint v2
Fixed 2
  • Report correct values in the kube_pod_status_reason metric
  • Close reflectors once their corresponding CRDs are dropped
Security 1
  • Bump golang.org/x/net to v0.38.0 to fix CVE-2025-22870 and CVE-2025-22872
View originalRead the notes
How v2.16.0 went
v2.15.0

v2.15.0 / 2025-02-03

Added 2
  • Add external traffic policy to kube_service_info
  • Add timezone to kube_cronjob_info and make kube_cronjob_next_schedule_time timezone-aware
Changed 1
  • Promote kube_statefulset_ordinals_start from ALPHA to STABLE
Fixed 5
  • Fix CR cache for GVK all specified case
  • Deduplicate tolerations before creating metric
  • Make $VERSION 3rd-party independent
  • Fix NoNodePod naming in jsonnet
  • Fix panic in util.GVRFromType for structured types
View originalRead the notes
How v2.15.0 went
v2.14.0

v2.14.0 / 2024-11-08

Added 1
  • Add new metric kube_job_status_suspended
Changed 2
  • Move endpoint ports into the kube_endpoint_address metric
  • Use concurrent map when storing metrics
Fixed 10
  • Use --track-unscheduled-pods to select unscheduled pods in Daemonset sharding
  • Install tools so VERSION gets set in the Dockerfile
  • Fix syntax errors in kube-state-metrics.libsonnet
  • Set kube_job_status_failed metric even when there are no job.Status.Conditions present
  • De-duplicate custom resource metrics
  • Configure sharding every time MetricsHandler.Run runs
Removed 1
  • Removed deprecated endpoint address metrics kube_endpoint_address_not_ready and kube_endpoint_address_available; use kube_endpoint_address instead
View originalRead the notes
How v2.14.0 went
v2.13.0

v2.13.0 / 2024-07-19

Added 5
  • Add kube_persistentvolume_volume_mode metric
  • Add read and write timeouts for requests
  • Add livez endpoint
  • Add readyz endpoint
  • Add automatic detection of memory limits
Changed 4
  • Build with Golang v1.22.5
  • Build with k8s.io/client-go v0.30.3
  • Support Kubernetes 1.30
  • Pod autosharding transitions from labelselector to fieldselector
Fixed 1
  • Pod autosharding transition from labelselector to fieldselector
Security 1
  • Bump dependencies to fix CVEs
View originalRead the notes
How v2.13.0 went
v2.12.0

v2.12.0 / 2024-04-02

Added 2
  • Add kube_pod_container_status_last_terminated_timestamp metric
  • Allow prefixing expandable paths
Changed 1
  • Build now uses k8s.io/client-go v0.29.3
Fixed 1
  • Fallback to gauge for protobuf-based negotiations, addressing a critical issue where scraping exposition data for certain types caused metrics backends to crash
View originalRead the notes
How v2.12.0 went
View all

Discussion

If you publish kube-state-metrics, you can claim this product by proving you administer its repository.