Kubernetes moduleedit

This module fetches metrics from Kubernetes kubelet agent and kube-state-metrics service.

All metricsets with the state_ prefix require hosts field pointing to kube-stat-metrics service within the cluster, while the rest should be pointed to kubelet service. Check the example configuration on how to do it.

Example configurationedit

The Kubernetes module supports the standard configuration options that are described in Specify which modules to run. Here is an example configuration:

# Node metrics, from kubelet:
- module: kubernetes
    - node
    - system
    - pod
    - container
    - volume
  period: 10s
  hosts: ["localhost:10255"]

# State metrics from kube-state-metrics service:
- module: kubernetes
  enabled: false
    - state_node
    - state_deployment
    - state_replicaset
    - state_pod
    - state_container
  period: 10s
  hosts: ["kube-state-metrics:8080"]

# Kubernetes events
- module: kubernetes
  enabled: false
    - event

This module supports TLS connection when using ssl config field, as described in Specify SSL settings.


The following metricsets are available: