ObserveNow
...
Integrations
Infrastructure

Apache Airflow

Metrics

Instrumentation For Offical Apache Helm Chart

If you are making use of the official apache helm chart, make sure the statsd exporter is enabled with proper service annotations, if not, you can enable it by adding the following snippet to the values.yaml file of the airflow deployment:

YAML


You will also need to add the following extraMappings snippet under the statsd configurations of the values.yaml file of the airflow deployment:

YAML


The Airflow Cluster Dashboard can be added into your grafana instance for Visualization.

Instrumentation For Community Helm Chart

If you are making use of the community helm chart, you can enable metrics instrumentaion by following any of the below mentioned methods.

You can use otel for instrumenting airflow metrics by setting the following in the values.yaml file of the airflow deployment:

YAML


For more configuration options for metrics, you can refer the airflow otel metrics documentaion.

Update your airflow deployment using the helm upgrade command and you should be able to see metrics coming to your Grafana.



Traces

Otel Instrumentation for Community Airflow helm chart

If you are making use of the community helm chart, you can configure your Airflow instance to send traces to your Grafana.

Tracing can only be configured if you are using Airflow version 2.10.1 and above. For the versions below that, airflow does not support traces instrumentation.

To configure tracing, please add the traces configuration and the apache-airflow[otel] package for your airflow by updating values.yaml as follows -

YAML


For more configuration options for traces, you can check the Airlfow traces documentation.

If you set otel_debugging_on to True, airflow will print traces to the console instead of sending it to configured host.

Update your airflow deployment using the helm upgrade command and you should be able to see traces coming to your Grafana.