Difference between revisions of "Datadog Airflow integration"

From wikieduonline
Jump to navigation Jump to search
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
TO_MERGE: [[Datadog Airflow]]
 
  
 
* [[Kubernetes]]: https://airflow.apache.org/docs/helm-chart/stable/production-guide.html#datadog
 
* [[Kubernetes]]: https://airflow.apache.org/docs/helm-chart/stable/production-guide.html#datadog
 
* Windows/Linux https://docs.datadoghq.com/integrations/airflow/
 
* Windows/Linux https://docs.datadoghq.com/integrations/airflow/
 
* Official documentation with <code>[[dogstatsd_mapper_profile:]]</code> configuration for the agent: https://app.datadoghq.eu/integrations/airflow
 
* Official documentation with <code>[[dogstatsd_mapper_profile:]]</code> configuration for the agent: https://app.datadoghq.eu/integrations/airflow
 +
* https://airflow.apache.org/docs/apache-airflow/stable/configurations-ref.html
  
 
  <code>[[statsd_datadog_enabled]]</code>
 
  <code>[[statsd_datadog_enabled]]</code>
Line 10: Line 10:
 
== Airflow monitoring ==
 
== Airflow monitoring ==
 
{{airflow monitoring}}
 
{{airflow monitoring}}
 +
 +
 +
== Logs ==
 +
 +
[[triggerer]] | [2022-12-05 14:02:35,051] {base.py:317} INFO - [[Statsd]] buffering is disabled
 +
triggerer | [2022-12-05 14:02:35,052] {base.py:335} INFO - Statsd periodic buffer flush is disabled
 +
triggerer | [2022-12-05 14:02:35,053] {base.py:317} INFO - Statsd buffering is disabled
 +
triggerer | [2022-12-05 14:02:35,053] {base.py:335} INFO - Statsd periodic buffer flush is disabled
 +
 +
[[scheduler]] | [2022-12-05 14:02:35,223] {base.py:317} INFO - Statsd buffering is disabled
 +
scheduler | [2022-12-05 14:02:35,234] {base.py:335} INFO - Statsd periodic buffer flush is disabled
 +
scheduler | [2022-12-05 14:02:35,235] {base.py:317} INFO - Statsd buffering is disabled
 +
scheduler | [2022-12-05 14:02:35,235] {base.py:335} INFO - Statsd periodic buffer flush is disabled
 +
 +
[[webserver]] | [2022-12-05 14:02:36,135] {base.py:317} INFO - Statsd buffering is disabled
 +
webserver | [2022-12-05 14:02:36,135] {base.py:335} INFO - Statsd periodic buffer flush is disabled
 +
webserver | [2022-12-05 14:02:36,136] {base.py:317} INFO - Statsd buffering is disabled
 +
webserver | [2022-12-05 14:02:36,136] {base.py:335} INFO - Statsd periodic buffer flush is disabled
 +
 +
 +
 +
* https://docs.datadoghq.com/integrations/airflow/?tab=containerized
 +
INTEGRATION_NAME = {"airflow"}
 +
INIT_CONFIG = {}
 +
INSTANCE_CONFIG = {"url": http://%%host%%:8080"}
 +
 +
LOG_CONFIG = {"source": "airflow", "service": "<YOUR_APP_NAME>"}
 +
 +
== Errors ==
 +
* <code>[[ERROR airflow.stats Could not configure StatsClient: No module named 'datadog', using DummyStatsLogger instead]]</code>
 +
* <code>[[Error submitting packet]]: [Errno 111] Connection refused, dropping the packet and closing the socket, "level": "WARNING</code>
  
 
== Related ==
 
== Related ==
Line 17: Line 48:
 
* [[Airflow]] <code>[[base_url]]</code> default value <code>http://localhost:8080</code>
 
* [[Airflow]] <code>[[base_url]]</code> default value <code>http://localhost:8080</code>
 
* [[DogStatsD]]: <code>[[pip install]] 'apache-airflow[statsd]'</code>
 
* [[DogStatsD]]: <code>[[pip install]] 'apache-airflow[statsd]'</code>
* <code>[[ERROR airflow.stats Could not configure StatsClient: No module named 'datadog', using DummyStatsLogger instead]]</code>
+
* <code>[[DD_DOGSTATSD_MAPPER_PROFILES]]</code>
  
 
== See also ==
 
== See also ==

Latest revision as of 14:11, 20 June 2024

Airflow monitoring[edit]

[metrics]
statsd_on = True
statsd_host = localhost
statsd_port = 8125
statsd_prefix = airflow
#statsd_allow_list = scheduler,executor,dagrun
statsd_datadog_enabled = False


Logs[edit]

triggerer | [2022-12-05 14:02:35,051] {base.py:317} INFO - Statsd buffering is disabled
triggerer | [2022-12-05 14:02:35,052] {base.py:335} INFO - Statsd periodic buffer flush is disabled
triggerer | [2022-12-05 14:02:35,053] {base.py:317} INFO - Statsd buffering is disabled
triggerer | [2022-12-05 14:02:35,053] {base.py:335} INFO - Statsd periodic buffer flush is disabled
scheduler | [2022-12-05 14:02:35,223] {base.py:317} INFO - Statsd buffering is disabled
scheduler | [2022-12-05 14:02:35,234] {base.py:335} INFO - Statsd periodic buffer flush is disabled
scheduler | [2022-12-05 14:02:35,235] {base.py:317} INFO - Statsd buffering is disabled
scheduler | [2022-12-05 14:02:35,235] {base.py:335} INFO - Statsd periodic buffer flush is disabled
webserver | [2022-12-05 14:02:36,135] {base.py:317} INFO - Statsd buffering is disabled
webserver | [2022-12-05 14:02:36,135] {base.py:335} INFO - Statsd periodic buffer flush is disabled
webserver | [2022-12-05 14:02:36,136] {base.py:317} INFO - Statsd buffering is disabled
webserver | [2022-12-05 14:02:36,136] {base.py:335} INFO - Statsd periodic buffer flush is disabled


INTEGRATION_NAME = {"airflow"}
INIT_CONFIG = {}
INSTANCE_CONFIG = {"url": http://%%host%%:8080"}
LOG_CONFIG = {"source": "airflow", "service": "<YOUR_APP_NAME>"}

Errors[edit]

Related[edit]

See also[edit]

Advertising: