Metrics in Kubernetes: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 8: Line 8:
==<span id='Resource_Metric'></span>Resource Metrics==
==<span id='Resource_Metric'></span>Resource Metrics==
A resource metric is a numeric quantity that tracks either the CPU or memory consumed by containers and pods. By default, the only two supported resource metrics are the CPU utilization and the memory consumed by a container. These resources do not change names from cluster to cluster and they should be available as long the [[#Resource_Metrics_API|Resource Metrics API]] is available.
A resource metric is a numeric quantity that tracks either the CPU or memory consumed by containers and pods. By default, the only two supported resource metrics are the CPU utilization and the memory consumed by a container. These resources do not change names from cluster to cluster and they should be available as long the [[#Resource_Metrics_API|Resource Metrics API]] is available.
===Resource Metrics API===
metrics.k8s.io
<font color=darkgray>TODO:
* https://github.com/kubernetes/community/blob/master/contributors/design-proposals/instrumentation/resource-metrics-api.md
* https://github.com/kubernetes/community/blob/master/contributors/design-proposals/instrumentation/custom-metrics-api.md</font>


==<span id='Custom_Metric'></span>Custom Metrics==
==<span id='Custom_Metric'></span>Custom Metrics==

Revision as of 20:21, 5 October 2020

Internal

Overview

Resource

Metrics

Resource Metrics

A resource metric is a numeric quantity that tracks either the CPU or memory consumed by containers and pods. By default, the only two supported resource metrics are the CPU utilization and the memory consumed by a container. These resources do not change names from cluster to cluster and they should be available as long the Resource Metrics API is available.

Resource Metrics API

metrics.k8s.io TODO:

Custom Metrics

Aside from resource metrics, there are two other types of metrics, both of which are considered custom metrics: pod metrics and object metrics.

Pod Metrics

These resource describe pods.

Object Metrics

These resources describe different objects in the same namespace, instead of describing pods.

External Metrics

Kubernetes Metrics Server

Kubernetes Metrics Server

Metric Pipeline

Notes