Metrics in Kubernetes: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 5: Line 5:
=Resource=
=Resource=


=Metric=
=<span id='Metric'></span>Metrics=
==Resource Metric==
==<span id='Resource_Metric'></span>Resource Metrics==
A resource metric is a numeric quantity that tracks the value of a [[Kubernetes_Resource_Management_Concepts#Resource|resource]] specified by a Kubernetes API resource. By default, the only two supported resource metrics are the CPU utilization of a container 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 the value of a [[Kubernetes_Resource_Management_Concepts#Resource|resource]] specified by a Kubernetes API resource. By default, the only two supported resource metrics are the CPU utilization of a container 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.


==Custom Metric==
==<span id='Custom_Metric'></span>Custom Metrics==
Aside from [[#Resource_Metric|resource metrics]], there are two other types of metrics, both of which are considered [[#Custom_Metric|custom metrics]]: [[#Pod_Metric|pod metrics]] and [[#Object_Metrics|object metrics]].
Aside from [[#Resource_Metric|resource metrics]], there are two other types of metrics, both of which are considered [[#Custom_Metric|custom metrics]]: [[#Pod_Metric|pod metrics]] and [[#Object_Metrics|object metrics]].
===Pod Metric===
===<span id='Pod_Metric'></span>Pod Metrics===
===Object Metric===
===<span id='Object_Metric'></span>Object Metrics===


=Kubernetes Metrics Server=
=Kubernetes Metrics Server=

Revision as of 20:07, 5 October 2020

Internal

Overview

Resource

Metrics

Resource Metrics

A resource metric is a numeric quantity that tracks the value of a resource specified by a Kubernetes API resource. By default, the only two supported resource metrics are the CPU utilization of a container 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.

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

Object Metrics

Kubernetes Metrics Server

Kubernetes Metrics Server

Resource Metrics API

metrics.k8s.io

TODO:

Notes