Microservices Observability in a Kubernetes World: Metrics
75%
Metrics Available in Prometheus
When you install Prometheus, you gain access to a Prometheus instance, a Grafana instance, and a set of Prometheus exporters. The Prometheus Operator also creates kube-state-metrics, an add-on agent that listens to the Kubernetes API server and generates metrics about the state of Kubernetes objects, such as Nodes, Pods, Deployments, and more.
You can see a list of available metrics provided by kube-state-metrics in its official repository.
For example, metrics for Pods are available in the Pod metrics documentation.
The following are some examples of available metrics for Pods:
kube_pod_overhead_memory_bytes: The Pod overhead with regard to memory associated with running a Pod.kube_pod_created: Unix timestamp representing the time when a Pod was created.kube_pod_container_status_ready: Describes whether the container's readiness check succeeded.- And many more.
Cloud-Native Microservices With Kubernetes - 2nd Edition
A Comprehensive Guide to Building, Scaling, Deploying, Observing, and Managing Highly-Available Microservices in KubernetesEnroll now to unlock all content and receive all future updates for free.
