Werk #14572: Prometheus: Deprecation of 'kube-state-metrics' scrape target

Component Checks & agents
Title Prometheus: Deprecation of 'kube-state-metrics' scrape target
Date Jan 12, 2023
Checkmk Edition Checkmk Raw (CRE)
Checkmk Version 2.2.0b1
Level Trivial Change
Class Bug Fix
Compatibility Incompatible - Manual interaction might be required

The Prometheus agent provides the kube-state-metrics as a possible data source. This in turn would enable the following checks.

  • k8s_resources
  • k8s_namespaces
  • k8s_conditions
  • k8s_pod_container
  • k8s_service_info
  • k8s_daemon_pods

However, these checks are no longer actively maintained, since they have been superseded by their counterparts in the Kubernetes agent. Moreover, the kube-state-metrics target

  • does not support new versions of kube-state-metrics (v2.0.0-alpha / 2020-09-16 or newer),
  • does not provide the information required to fully support monitoring and
  • is stricly inferior to monitoring via the Kubernetes agent.

For this reason, this option will be removed in Checkmk 2.3.0.

If you are affected by this change, you need to setup your monitoring as per these instructions: https://docs.checkmk.com/latest/en/monitoring_kubernetes.html

To the list of all Werks