Architecture Flashcards

1
Q

explain how prometheus gathers info from the app

A

Prometheus server make a request to the app (scrape) to /metrics endpoint and gets in response Sample Data

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

what is PromQL?

A

language to query time series in Prometheus, for example avg(satori_query_failure_total{site=”olxua”})

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

What is Service Discovery?

A

Prometheus can find our services by itself, no configuration needed

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

What is Push Gateway?

A

used for short running jobs, for example cron-jobs: they can push metrics to PushGateway and later Prometheus can scrape it as it would the normal http service

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

What is Alert Manager?

A

Prometheus can send alerts to Alerts Manager which will send a human understandable notification on email, pagerDuty, slack etc.

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

explain prometheus architecture in general

A

short-lived jobs push metrics to PushGateway -> Prometheus pull metrics from PushGateway and from jobs (my apps and services) and 3rd party exporters (e.q. sql), prometheus finds my apps and services via Service Discovery, Prometheus sends alerts to AlertManager which push notification to slack; Grafana, API clients and Prometheus web UI collect Prometheus metrics using PromQL language

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