Edge Delta Kubernetes Metrics Source

Scrape Kubernetes metrics.

Overview

You can use the Kubernetes Metrics source node to scrape certain Kubernetes metrics. By default, the node scrapes kube_state_metrics. The kubelet, cadvisor, and node_exporter metrics are excluded by default. See the metrics list.

See Ingest Kubernetes Metrics.

Example Configuration

nodes:
  - name: my_k8s_metrics
    type: ed_k8s_metrics_input
    exclude:
      - node_exporter  
    scrape_interval: 1m

Required Parameters

name

A descriptive name for the node. This is the name that will appear in Visual Pipelines and you can reference this node in the YAML using the name. It must be unique across all nodes. It is a YAML list element so it begins with a - and a space followed by the string. It is a required parameter for all nodes.

nodes:
  - name: <node name>
    type: <node type>

type: ed_k8s_metrics_input

The type parameter specifies the type of node being configured. It is specified as a string from a closed list of node types. It is a required parameter.

nodes:
  - name: <node name>
    type: <node type>

Optional Parameters

exclude

The exclude parameter is used to specify which metrics not to scrape. At least one metric must be scraped. By default, the node scrapes kube_state_metrics.

Note: As of v1.27.0 kubelet, cadvisor, and node_exporter metrics are excluded by default. You can remove them from the exclude list if you want to include them.

It is specified as text array and it is optional.

nodes:
  - name: <node name>
    type: ed_k8s_metrics_input
    exclude:
      - node_exporter  

scrape_interval

The scrape_interval parameter is used to specify the interval at which the Edge Delta agent scrapes metric endpoints. It is specified as a duration and it is optional. The default is 1m.

nodes:
  - name: <node name>
    type: ed_k8s_metrics_input
    scrape_interval: 1m