0
0
Apache Airflowdevops~5 mins

Airflow metrics with Prometheus - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the purpose of integrating Prometheus with Airflow?
Prometheus collects and stores metrics from Airflow to monitor its performance and health in real time.
Click to reveal answer
beginner
Which Airflow component exposes metrics for Prometheus to scrape?
The Airflow webserver exposes metrics on an HTTP endpoint that Prometheus scrapes.
Click to reveal answer
beginner
Name one common Airflow metric that Prometheus can collect.
One common metric is the number of running DAG runs, which helps track active workflows.
Click to reveal answer
intermediate
How do you enable Prometheus metrics in Airflow's configuration?
Set `metrics.prometheus.enabled = True` in the airflow.cfg file or environment variables.
Click to reveal answer
intermediate
What is the role of the Prometheus scrape config in monitoring Airflow?
It tells Prometheus where and how often to collect metrics from the Airflow metrics endpoint.
Click to reveal answer
Which Airflow component typically exposes metrics for Prometheus?
AAirflow webserver
BAirflow scheduler
CAirflow worker
DAirflow database
What configuration setting enables Prometheus metrics in Airflow?
Aprometheus.metrics.active = yes
Bmetrics.prometheus.enabled = True
Cenable.prometheus.metrics = on
Dmetrics.enabled.prometheus = true
What does Prometheus use to find Airflow metrics?
AScrape configuration with Airflow metrics endpoint URL
BDirect database queries
CAirflow CLI commands
DAirflow logs
Which metric would help monitor how many workflows are currently running in Airflow?
ANumber of Airflow users
BCPU usage of Airflow server
CDisk space on Airflow host
DNumber of running DAG runs
Why is monitoring Airflow with Prometheus useful?
ATo run Airflow tasks faster
BTo replace Airflow's scheduler
CTo track Airflow health and performance in real time
DTo store Airflow logs permanently
Explain how Prometheus collects metrics from Airflow and why this is helpful.
Think about how Prometheus finds and uses Airflow data.
You got /4 concepts.
    Describe the steps to enable and configure Prometheus metrics in Airflow.
    Focus on configuration changes and Prometheus setup.
    You got /4 concepts.