github kubernetes/kube-state-metrics v2.18.0

one day ago

v2.18.0 / 2026-01-11

Note

  • This release builds with Go v1.25.6
  • This release builds with k8s.io/client-go: v0.34.3
  • This release addresses a regression that caused a panic when new versions were added to existing CustomResourceDefinitions. See the post-mortem analysis in #2838 for more details.
  • endpointslices are now part of the default resources exposed as metrics. endpoints is deprecated and needs to be manually activated through the --resources flag. See #2659 for more details.

Changelog

  • [CHANGE] Replace endpoints with endpointslices as default resource by @mrueg in #2659
  • [BUGFIX] Fix regression: React on WATCH updates for CRD informer by @rexagod in #2838
  • [BUGFIX] Deduplicate tolerations when generating kube_pod_tolerations by @bhope in #2835
  • [FEATURE] Allow filtering resources via URL parameters by @mrueg in #2844
  • [FEATURE] Add kube_job_status_ready metric by @nmn3m in #2771
  • [FEATURE] Add kube_deployment_owner metric by @nmn3m in #2782
  • [FEATURE] Add kube_deployment_status_replicas_terminating and kube_replicaset_status_terminating_replicas metrics by @atiratree in #2708
  • [FEATURE] Promote CronJob, HPA, and Pod metrics from BETA to STABLE by @nmn3m in #2798
  • [FEATURE] Promote StatefulSet metrics to STABLE by @yasicar in #2783
  • [FEATURE] Add info metric for client-go version by @fpetkovski in #2739
  • [FEATURE] Warn on probe failing by @mickael-carl in #2808
  • [ENHANCEMENT] Add failed condition to kube_certificatesigningrequest_condition by @ksmiley in #2841
  • [ENHANCEMENT] Reduce allocations when creating metric families by @fpetkovski in #2807
  • [ENHANCEMENT] Bump to kubernetes 1.34 by @mrueg in #2785
  • [ENHANCEMENT] Bump exporter-toolkit by @mrueg in #2770
  • [ENHANCEMENT] Replace gojsontoyaml with gojq by @mrueg in #2660
  • [ENHANCEMENT] Split benchmarks by @mrueg in #2759

Full Changelog

  • build(deps): Bump sigs.k8s.io/yaml from 1.4.0 to 1.5.0 by @dependabot[bot] in #2694
  • chore: Merge v2.16 back into main by @rexagod in #2697
  • build(deps): Bump github.com/oklog/run from 1.1.0 to 1.2.0 by @dependabot[bot] in #2696
  • feat(pod): Add new metric for pod unscheduled time tracking by @yshngg in #2699
  • build(deps): Bump github.com/KimMachineGun/automemlimit from 0.7.3 to 0.7.4 by @dependabot[bot] in #2707
  • chore: Add CatherineF-dev into SECURITY_CONTACTS by @CatherineF-dev in #2710
  • build(deps): Bump sigs.k8s.io/yaml from 1.5.0 to 1.6.0 by @dependabot[bot] in #2712
  • build(deps): Bump github.com/prometheus/client_golang from 1.22.0 to 1.23.0 by @dependabot[bot] in #2717
  • fix(customresourcestate): fix index out of range by @taraspos in #2716
  • fix: Config file overrides apply to some fields but not other by @rashmichandrashekar in #2705
  • chore: Build with k8s 1.33 by @mrueg in #2720
  • fix: Fixed the format of Markdown files by @Rishab87 in #2714
  • build(deps): Bump actions/checkout from 4.2.2 to 5.0.0 by @dependabot[bot] in #2731
  • docs: Update metrics-store-performance-optimization.md by @ydFu in #2723
  • feat: include reason label to kube_deployment_status_condition by @Rishab87 in #2719
  • build(deps): Bump the k8s-dependencies group with 5 updates by @dependabot[bot] in #2737
  • build(deps): Bump amannn/action-semantic-pull-request from 5.5.3 to 6.0.1 by @dependabot[bot] in #2738
  • feat: Continue running kube-state-metrics when config file doesnt exist at startup by @rashmichandrashekar in #2703
  • build(deps): Bump amannn/action-semantic-pull-request from 6.0.1 to 6.1.0 by @dependabot[bot] in #2741
  • feat: Add HorizontalPodAutoscaler created and deletionTimestamp info into metrics by @IgorIgnatevBolt in #2675
  • feat: introduce deletion timestamp metric for daemonset, statefulset, deployment, service and pdb by @IgorIgnatevBolt in #2678
  • build(deps): Bump github.com/stretchr/testify from 1.10.0 to 1.11.0 by @dependabot[bot] in #2745
  • build(deps): Bump amannn/action-semantic-pull-request from 6.1.0 to 6.1.1 by @dependabot[bot] in #2746
  • refactor: Reduce high cyclo complexity in endpoints slices by @onasser1 in #2740
  • build(deps): Bump github.com/stretchr/testify from 1.11.0 to 1.11.1 by @dependabot[bot] in #2755
  • fix: Fix logic for plain text fallback format by @timonegk in #2730
  • chore: Bump versions by @mrueg in #2758
  • chore: Merge v2.17.0 back into main by @Rishab87 in #2761
  • build(deps): Bump actions/setup-go from 5.5.0 to 6.0.0 by @dependabot[bot] in #2762
  • build(deps): Bump github.com/spf13/cobra from 1.9.1 to 1.10.1 by @dependabot[bot] in #2764
  • chore: Bump exporter-toolkit by @mrueg in #2770
  • chore: Split benchmarks by @mrueg in #2759
  • build(deps): Bump github.com/spf13/viper from 1.20.1 to 1.21.0 by @dependabot[bot] in #2777
  • build(deps): Bump actions/setup-go from 5.5.0 to 6.0.0 by @dependabot[bot] in #2778
  • feat: Update contributing.md to include local tests by @onasser1 in #2744
  • feat: Promote many metrics from ALPHA -> STABLE by @nmn3m in #2749
  • feat: Add kube_job_status_ready metric by @nmn3m in #2771
  • build(deps): Bump kubernetes-sigs/release-actions from 0.3.1 to 0.4.0 by @dependabot[bot] in #2784
  • chore: Bump to kubernetes 1.34 by @mrueg in #2785
  • feat: add kube_deployment_owner metric by @nmn3m in #2782
  • build(deps): Bump sigs.k8s.io/controller-runtime from 0.22.1 to 0.22.3 by @dependabot[bot] in #2795
  • feat: add kube_deployment_status_replicas_terminating and kube_replicaset_status_terminating_replicas metrics by @atiratree in #2708
  • feat: promote metrics from beta to stable by @nmn3m in #2798
  • build(deps): Bump github.com/prometheus/common from 0.66.1 to 0.67.1 by @dependabot[bot] in #2796
  • build(deps): Bump github.com/KimMachineGun/automemlimit from 0.7.4 to 0.7.5 by @dependabot[bot] in #2801
  • build(deps): Bump github.com/prometheus/exporter-toolkit from 0.14.1 to 0.15.0 by @dependabot[bot] in #2800
  • test: fixing issue realted to test indentation by @nmn3m in #2786
  • feat: Added bash script for updating data.yaml by @Rishab87 in #2769
  • build(deps): Bump github.com/prometheus/common from 0.67.1 to 0.67.2 by @dependabot[bot] in #2804
  • feat: Add info metric for client-go version by @fpetkovski in #2739
  • build(deps): Bump sigs.k8s.io/controller-runtime from 0.22.3 to 0.22.4 by @dependabot[bot] in #2806
  • build(deps): Bump the k8s-dependencies group with 5 updates by @dependabot[bot] in #2811
  • build(deps): Bump github.com/prometheus/common from 0.67.2 to 0.67.4 by @dependabot[bot] in #2813
  • build(deps): Bump actions/checkout from 5.0.0 to 6.0.0 by @dependabot[bot] in #2814
  • build(deps): Bump actions/setup-go from 6.0.0 to 6.1.0 by @dependabot[bot] in #2815
  • feat: warn on probe failing by @mickael-carl in #2808
  • feat: promote StatefulSet metrics to STABLE and enhance docs by @yasicar in #2783
  • feat: Replace endpoints with endpointslices as default resource by @mrueg in #2659
  • perf: Reduce allocations when creating metric families by @fpetkovski in #2807
  • build(deps): Bump github.com/spf13/cobra from 1.10.1 to 1.10.2 by @dependabot[bot] in #2827
  • build(deps): Bump actions/checkout from 6.0.0 to 6.0.1 by @dependabot[bot] in #2826
  • chore: Replace gojsontoyaml with gojq by @mrueg in #2660
  • docs: Update PULL_REQUEST_TEMPLATE.md by @CatherineF-dev in #2832
  • build(deps): Bump github.com/prometheus/exporter-toolkit from 0.15.0 to 0.15.1 by @dependabot[bot] in #2837
  • fix: regression: React on WATCH updates for CRD informer by @rexagod in #2838
  • docs: add StatefulSet PromQL queries by @yasicar in #2821
  • fix: deduplicate tolerations when generating kube_pod_tolerations by @bhope in #2835
  • feat: Added goreleaser config for generating release notes and pre release creation by @Rishab87 in #2788
  • build(deps): Bump github.com/prometheus/common from 0.67.4 to 0.67.5 by @dependabot[bot] in #2839
  • build(deps): Bump actions/setup-go from 5 to 6 by @dependabot[bot] in #2842
  • build(deps): Bump actions/checkout from 4 to 6 by @dependabot[bot] in #2843
  • feat: add failed condition to kube_certificatesigningrequest_condition by @ksmiley in #2841
  • feat: Resource query via parameter by @mrueg in #2844
  • chore: Cut v2.18.0 by @rexagod in #2840

New Contributors

Full Changelog: v2.16.0...v2.18.0

Don't miss a new kube-state-metrics release

NewReleases is sending notifications on new releases.