Observability - Monitor and Debug Applications Flashcards
1
Q
What do we usually want to monitor?
A
- node level metrics: how many nodes
- performance metrics: cpus, memory
- pod level metrics: nr of pods, consumption
2
Q
What can we use to monitor in Kubernetes?
A
No built-in solution yet.
Many open source solutions: MetricsServer, Prometheus, Elastic Stack
3
Q
What is Metrics Server? How can you work with it?
A
- logging solution
- one metric server per kubernetes cluster
4
Q
What does a Metrics Server do?
A
- retrieves metrics from each of the Kubernetes nodes and pods
- aggregates and stores them in memory
- only in-memory storing solution
- no historical data
- for that advanced monitoring solution
5
Q
How does the kubelet work for logging?
A
- has a sub component cAdvisor
- cAdvisor is responsible for retrieving performance metrics from pods
- and exposing them through kubelet API to make them available for the metrics server
6
Q
How can you deploy a metrics server?
A
- git clone https://github.com/kubernetes-incubator/metrics-server.git
- ‘kubectl create -f deploy/1.8+/’
- kubectl top node -> to see the collected data
7
Q
A