Complete the code to enable Prometheus metrics in Airflow's configuration.
[metrics]
enabled = [1]Setting enabled = True activates Prometheus metrics in Airflow.
Complete the code to set the Prometheus metrics port in Airflow's configuration.
[metrics]
port = [1]Port 9090 is the default port for Prometheus metrics in Airflow.
Fix the error in the command to start the Prometheus metrics server for Airflow.
airflow metrics [1]The correct Airflow CLI command to start the metrics server is airflow metrics serve.
Fill both blanks to create a Prometheus scrape configuration for Airflow metrics.
- job_name: 'airflow' static_configs: - targets: ['[1]:[2]']
The scrape target should be localhost:9090 to collect Airflow metrics locally on the default port.
Fill all three blanks to define a Prometheus alert rule for Airflow task failures.
groups:
- name: airflow_alerts
rules:
- alert: AirflowTaskFailure
expr: airflow_task_failed_total[1] > [2]
for: [3]mThe alert triggers if the total failed tasks metric for the Airflow job exceeds 5 for 10 minutes.