Why monitor Flashcards

1
Q

Name main reasons for monitoring

A
  • detect issue fast, before client calls
  • clear picture of resources usage - spending optimisation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What to monitor

A
  • resources usage: CPU, Memory, Disk space
  • request rate
  • error rate
  • number of instances of apps
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

name possible samples

A
  • timestamp + value, (example: temp in New York given day),
  • timeseries: list of samples ordered by time (example: temp in New York for few days in a row)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is TSDB?

A
  • timeseries database (TSDB): special type of DB used to store timeseries, optimised toward querying by time
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

explain quantiles and percentiles

A

they are the same but represented differently: for example 90th quantile is 0.9 percentile,
- 90% of the time a request takes no more than 1 s OR
- 0.9 quantile equals 1 OR
- 90th percentile equals 1

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

give an example of metric name and it’s labels

A

temperature {city=’New York’, value=’33’}

temperature is metric name, city and value are labels

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

what are jobs and instance labels?

A

Prometheus gives those two values out of the box. Job is a service name, for example location-service, instance is a node on which the service is running on

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

what is instant vector?

A

list of samples where all of them contain the same timestamp, for example temperature in different places and different values but at the same time!

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

what is range vector?

A

subset of samples from a timeseries in a given time range, for example temperature in LosAngeles from last 20s

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