Architecture Flashcards
explain how prometheus gathers info from the app
Prometheus server make a request to the app (scrape) to /metrics endpoint and gets in response Sample Data
what is PromQL?
language to query time series in Prometheus, for example avg(satori_query_failure_total{site=”olxua”})
What is Service Discovery?
Prometheus can find our services by itself, no configuration needed
What is Push Gateway?
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
What is Alert Manager?
Prometheus can send alerts to Alerts Manager which will send a human understandable notification on email, pagerDuty, slack etc.
explain prometheus architecture in general
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