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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What can we use to monitor in Kubernetes?

A

No built-in solution yet.
Many open source solutions: MetricsServer, Prometheus, Elastic Stack

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is Metrics Server? How can you work with it?

A
  • logging solution
  • one metric server per kubernetes cluster
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How can you deploy a metrics server?

A
  1. git clone https://github.com/kubernetes-incubator/metrics-server.git
  2. ‘kubectl create -f deploy/1.8+/’
  3. kubectl top node -> to see the collected data
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly