## 6. Activate Runtime Metrics
To enable collection of runtime metrics, define a MetricPipeline that has the runtime section enabled as input:
```
apiVersion: telemetry.kyma-project.io/v1alpha1 kind: MetricPipeline metadata: name: backend spec: input: runtime: enabled: true output: otlp: endpoint: value: https://backend.example.com:4317
```
Description
By default, metrics for all resources (Pod, container, Node, Volume, DaemonSet, Deployment, StatefulSet, and Job) are collected.
To enable or disable the collection of metrics for a specific resource, use the resources section in the runtime input.
The following example collects only DaemonSet, Deployment, StatefulSet, and Job metrics:
```
apiVersion: telemetry.kyma-project.io/v1alpha1 kind: MetricPipeline metadata: name: backend spec: input: runtime: enabled: true resources: pod: enabled: false container: enabled: false node: enabled: false volume: enabled: false daemonset: enabled: true deployment: enabled: true statefulset: enabled: true job: enabled: true output: otlp: endpoint: value: https://backend.example.com:4317
```
## Collected Metrics per Resource
| Resource   | From the kubletstatsreceiver                                                                                                                                                                                                                                                                                                                           | From the k8sclusterreceiver   |
|------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------|
| Pod        | • k8s.pod.cpu.capacity • k8s.pod.cpu.usage • k8s.pod.filesystem.available • k8s.pod.filesystem.capacity • k8s.pod.filesystem.usage • k8s.pod.memory.available • k8s.pod.memory.ma- jor_page_faults • k8s.pod.memory.page_faults • k8s.pod.memory.rss • k8s.pod.memory.usage • k8s.pod.memory.working_set • k8s.pod.network.errors • k8s.pod.network.io | • k8s.pod.phase               |
| Resource    | From the kubletstatsreceiver                                                                                                                                                                                                                                                                                               | From the k8sclusterreceiver                                                                                                                          |
|-------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------|
| Container   | • container.cpu.time • container.cpu.usage • container.filesystem.available • container.filesystem.capacity • container.filesystem.usage • container.memory.available • container.memory.ma- jor_page_faults • container.memory.page_faults • container.memory.rss • container.memory.usage • container.memory.working_set | • k8s.container.cpu_request • k8s.container.cpu_limit • k8s.container.memory_request • k8s.container.memory_limit • k8s.container.restarts           |
| Node        | • k8s.node.cpu.usage • k8s.node.filesystem.available • k8s.node.filesystem.capacity • k8s.node.filesystem.usage • k8s.node.memory.available • k8s.node.memory.usage • k8s.node.memory.rss                                                                                                                                  | -                                                                                                                                                    |
| Volume      | • k8s.volume.available • k8s.volume.capacity • k8s.volume.inodes • k8s.volume.inodes.free • k8s.volume.inodes.used                                                                                                                                                                                                         | -                                                                                                                                                    |
| Deployment  | -                                                                                                                                                                                                                                                                                                                          | • k8s.deployment.available • k8s.deployment.desired                                                                                                  |
| DaemonSet   | -                                                                                                                                                                                                                                                                                                                          | • k8s.daemonset.current_sched- uled_nodes • k8s.daemonset.desired_sched- uled_nodes • k8s.daemonset.misscheduled_no- des • k8s.daemonset.ready_nodes |
| StatefulSet | -                                                                                                                                                                                                                                                                                                                          | • k8s.statefulset.current_pods • k8s.statefulset.desired_pods • k8s.statefulset.ready_pods • k8s.statefulset.updated_pods                            |
Job