You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/12/15 20:55:05 UTC

[GitHub] [airflow] andrew-nascimento opened a new pull request #17996: Update production-guide.rst - include datadog

andrew-nascimento opened a new pull request #17996:
URL: https://github.com/apache/airflow/pull/17996


   This is to enable exporting of logs to a datadog agent running in the same cluster.
   
   <!--
   Thank you for contributing! Please make sure that your code changes
   are covered with tests. And in case of new features or big changes
   remember to adjust the documentation.
   
   Feel free to ping committers for the review!
   
   In case of existing issue, reference it using one of the following:
   
   closes: #ISSUE
   related: #ISSUE
   
   How to write a good git commit message:
   http://chris.beams.io/posts/git-commit/
   -->
   
   ---
   **^ Add meaningful description above**
   
   Read the **[Pull Request Guidelines](https://github.com/apache/airflow/blob/main/CONTRIBUTING.rst#pull-request-guidelines)** for more information.
   In case of fundamental code change, Airflow Improvement Proposal ([AIP](https://cwiki.apache.org/confluence/display/AIRFLOW/Airflow+Improvements+Proposals)) is needed.
   In case of a new dependency, check compliance with the [ASF 3rd Party License Policy](https://www.apache.org/legal/resolved.html#category-x).
   In case of backwards incompatible changes please leave a note in [UPDATING.md](https://github.com/apache/airflow/blob/main/UPDATING.md).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] mik-laj commented on pull request #17996: Update production-guide.rst - include datadog

Posted by GitBox <gi...@apache.org>.
mik-laj commented on pull request #17996:
URL: https://github.com/apache/airflow/pull/17996#issuecomment-957026577


   We should add a section about Datadog to `apache-airflow` docs also. 
   http://airflow.apache.org/docs/apache-airflow/stable/logging-monitoring/metrics.html


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] mik-laj commented on pull request #17996: Update production-guide.rst - include datadog

Posted by GitBox <gi...@apache.org>.
mik-laj commented on pull request #17996:
URL: https://github.com/apache/airflow/pull/17996#issuecomment-957026577


   We should add a section about Datadog to `apache-airflow` docs also. 
   http://airflow.apache.org/docs/apache-airflow/stable/logging-monitoring/metrics.html


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] jedcunningham merged pull request #17996: Update production-guide.rst - include datadog

Posted by GitBox <gi...@apache.org>.
jedcunningham merged pull request #17996:
URL: https://github.com/apache/airflow/pull/17996


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] jedcunningham commented on a change in pull request #17996: Update production-guide.rst - include datadog

Posted by GitBox <gi...@apache.org>.
jedcunningham commented on a change in pull request #17996:
URL: https://github.com/apache/airflow/pull/17996#discussion_r770043772



##########
File path: docs/helm-chart/production-guide.rst
##########
@@ -184,6 +184,24 @@ To use an external StatsD instance:
       statsd_host: ...
       statsd_port: ...
 
+Datadog
+^^^^^^^
+If you are using a Datadog agent in your environment, this will enable Airflow to export metrics to the Datadog agent.
+
+.. code-block:: yaml
+
+  statsd:
+    enabled: false
+  config:
+    metrics: # or 'scheduler' for Airflow 1
+      statsd_on: true
+      statsd_port: 8125
+  extraEnv: |-
+    - name: AIRFLOW__METRICS__STATSD_HOST
+      valueFrom:
+        fieldRef:
+          fieldPath: status.hostIP
+          

Review comment:
       ```suggestion
             fieldPath: status.hostIP
   
   ```




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] jedcunningham commented on pull request #17996: Update production-guide.rst - include datadog

Posted by GitBox <gi...@apache.org>.
jedcunningham commented on pull request #17996:
URL: https://github.com/apache/airflow/pull/17996#issuecomment-995295201


   @andrew-nascimento, congrats on your first commit πŸŽ‰


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] jedcunningham commented on a change in pull request #17996: Update production-guide.rst - include datadog

Posted by GitBox <gi...@apache.org>.
jedcunningham commented on a change in pull request #17996:
URL: https://github.com/apache/airflow/pull/17996#discussion_r769915833



##########
File path: docs/helm-chart/production-guide.rst
##########
@@ -184,6 +184,44 @@ To use an external StatsD instance:
       statsd_host: ...
       statsd_port: ...
 
+Datadog
+^^^^^^^
+If you are using a Datadog agent in your environment, this will enable Airflow to export metrics to the Datadog agent.
+NOTE: The below is for version 2.x.x of Airflow.  In Airflow 1.x.x the swap all instances of ``metrics`` for ``scheduler``

Review comment:
       ```suggestion
   ```




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] a-nascimento commented on pull request #17996: Update production-guide.rst - include datadog

Posted by GitBox <gi...@apache.org>.
a-nascimento commented on pull request #17996:
URL: https://github.com/apache/airflow/pull/17996#issuecomment-957502264


   @jedcunningham - apologies here. I have shifted roles to a new organization, so I've been a bit in flux and unable to respond.
   
   Unfortunately, I can not currently test the suggestions above. However, I will add my comments to each based on my recollection of the issues I encountered.
   
   I hope to be back on the slack channels in a few weeks. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] jedcunningham commented on pull request #17996: Update production-guide.rst - include datadog

Posted by GitBox <gi...@apache.org>.
jedcunningham commented on pull request #17996:
URL: https://github.com/apache/airflow/pull/17996#issuecomment-956975490


   @a-nascimento, gentle ping. I'd love to get this merged for the next helm chart release.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] jedcunningham commented on pull request #17996: Update production-guide.rst - include datadog

Posted by GitBox <gi...@apache.org>.
jedcunningham commented on pull request #17996:
URL: https://github.com/apache/airflow/pull/17996#issuecomment-956975490


   @a-nascimento, gentle ping. I'd love to get this merged for the next helm chart release.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] a-nascimento commented on a change in pull request #17996: Update production-guide.rst - include datadog

Posted by GitBox <gi...@apache.org>.
a-nascimento commented on a change in pull request #17996:
URL: https://github.com/apache/airflow/pull/17996#discussion_r741131451



##########
File path: docs/helm-chart/production-guide.rst
##########
@@ -184,6 +184,44 @@ To use an external StatsD instance:
       statsd_host: ...
       statsd_port: ...
 
+Datadog
+^^^^^^^
+If you are using a Datadog agent in your environment, this will enable Airflow to export metrics to the Datadog agent.
+NOTE: The below is for version 2.x.x of Airflow.  In Airflow 1.x.x the swap all instances of ``metrics`` for ``scheduler``
+
+.. code-block:: yaml
+
+  statsd:
+    enabled: false
+  config:
+    metrics:

Review comment:
       I agree.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] potiuk closed pull request #17996: Update production-guide.rst - include datadog

Posted by GitBox <gi...@apache.org>.
potiuk closed pull request #17996:
URL: https://github.com/apache/airflow/pull/17996


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] a-nascimento commented on a change in pull request #17996: Update production-guide.rst - include datadog

Posted by GitBox <gi...@apache.org>.
a-nascimento commented on a change in pull request #17996:
URL: https://github.com/apache/airflow/pull/17996#discussion_r741030564



##########
File path: docs/helm-chart/production-guide.rst
##########
@@ -184,6 +184,44 @@ To use an external StatsD instance:
       statsd_host: ...
       statsd_port: ...
 
+Datadog
+^^^^^^^
+If you are using a Datadog agent in your environment, this will enable Airflow to export metrics to the Datadog agent.
+NOTE: The below is for version 2.x.x of Airflow.  In Airflow 1.x.x the swap all instances of ``metrics`` for ``scheduler``
+
+.. code-block:: yaml
+
+  statsd:
+    enabled: false
+  config:
+    metrics:
+      statsd_on: true
+      statsd_port: ``<port>``

Review comment:
       I'm fine with that. May want to add a comment to suggest that 8125 is default for dogstatsd but may differ in deployed environment or something.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] boring-cyborg[bot] commented on pull request #17996: Update production-guide.rst - include datadog

Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on pull request #17996:
URL: https://github.com/apache/airflow/pull/17996#issuecomment-912019305


   Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contribution Guide (https://github.com/apache/airflow/blob/main/CONTRIBUTING.rst)
   Here are some useful points:
   - Pay attention to the quality of your code (flake8, mypy and type annotations). Our [pre-commits]( https://github.com/apache/airflow/blob/main/STATIC_CODE_CHECKS.rst#prerequisites-for-pre-commit-hooks) will help you with that.
   - In case of a new feature add useful documentation (in docstrings or in `docs/` directory). Adding a new operator? Check this short [guide](https://github.com/apache/airflow/blob/main/docs/apache-airflow/howto/custom-operator.rst) Consider adding an example DAG that shows how users should use it.
   - Consider using [Breeze environment](https://github.com/apache/airflow/blob/main/BREEZE.rst) for testing locally, it’s a heavy docker but it ships with a working Airflow and a lot of integrations.
   - Be patient and persistent. It might take some time to get a review or get the final approval from Committers.
   - Please follow [ASF Code of Conduct](https://www.apache.org/foundation/policies/conduct) for all communication including (but not limited to) comments on Pull Requests, Mailing list and Slack.
   - Be sure to read the [Airflow Coding style]( https://github.com/apache/airflow/blob/main/CONTRIBUTING.rst#coding-style-and-best-practices).
   Apache Airflow is a community-driven project and together we are making it better πŸš€.
   In case of doubts contact the developers at:
   Mailing List: dev@airflow.apache.org
   Slack: https://s.apache.org/airflow-slack
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] andrew-nascimento commented on pull request #17996: Update production-guide.rst - include datadog

Posted by GitBox <gi...@apache.org>.
andrew-nascimento commented on pull request #17996:
URL: https://github.com/apache/airflow/pull/17996#issuecomment-995864605


   Thanks @jedcunningham 
   
   Still trying to settle in my new role. But I am back in the Slack community.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] jedcunningham commented on pull request #17996: Update production-guide.rst - include datadog

Posted by GitBox <gi...@apache.org>.
jedcunningham commented on pull request #17996:
URL: https://github.com/apache/airflow/pull/17996#issuecomment-956975490


   @a-nascimento, gentle ping. I'd love to get this merged for the next helm chart release.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] a-nascimento commented on pull request #17996: Update production-guide.rst - include datadog

Posted by GitBox <gi...@apache.org>.
a-nascimento commented on pull request #17996:
URL: https://github.com/apache/airflow/pull/17996#issuecomment-957502264


   @jedcunningham - apologies here. I have shifted roles to a new organization, so I've been a bit in flux and unable to respond.
   
   Unfortunately, I can not currently test the suggestions above. However, I will add my comments to each based on my recollection of the issues I encountered.
   
   I hope to be back on the slack channels in a few weeks. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] jedcunningham commented on a change in pull request #17996: Update production-guide.rst - include datadog

Posted by GitBox <gi...@apache.org>.
jedcunningham commented on a change in pull request #17996:
URL: https://github.com/apache/airflow/pull/17996#discussion_r701417592



##########
File path: docs/helm-chart/production-guide.rst
##########
@@ -184,6 +184,44 @@ To use an external StatsD instance:
       statsd_host: ...
       statsd_port: ...
 
+Datadog
+^^^^^^^
+If you are using a Datadog agent in your environment, this will enable Airflow to export metrics to the Datadog agent.
+NOTE: The below is for version 2.x.x of Airflow.  In Airflow 1.x.x the swap all instances of ``metrics`` for ``scheduler``
+
+.. code-block:: yaml
+
+  statsd:
+    enabled: false
+  config:
+    metrics:

Review comment:
       ```suggestion
       metrics: # or 'scheduler' for Airflow 1
   ```
   
   This is a cleaner approach to handling the Airflow 2 vs 1 differences I think? Then we can remove the note above?

##########
File path: docs/helm-chart/production-guide.rst
##########
@@ -184,6 +184,44 @@ To use an external StatsD instance:
       statsd_host: ...
       statsd_port: ...
 
+Datadog
+^^^^^^^
+If you are using a Datadog agent in your environment, this will enable Airflow to export metrics to the Datadog agent.
+NOTE: The below is for version 2.x.x of Airflow.  In Airflow 1.x.x the swap all instances of ``metrics`` for ``scheduler``
+
+.. code-block:: yaml
+
+  statsd:
+    enabled: false
+  config:
+    metrics:
+      statsd_on: true
+      statsd_port: ``<port>``
+      statsd_prefix: airflow
+  extraEnv: |-
+    - name: AIRFLOW__METRICS__STATSD_HOST
+      valueFrom:
+        fieldRef:
+          fieldPath: status.hostIP
+          
+-OR-
+
+.. code-block:: yaml
+
+  statsd:
+    enabled: false
+  extraEnv: |-
+    - name: AIRFLOW__METRICS__STATSD_ON
+      value: "True"
+    - name: AIRFLOW__METRICS__STATSD_PORT
+      value: ``<port>``
+    - name: AIRFLOW__METRICS__STATSD_PREFIX
+      value: "airflow"
+    - name: AIRFLOW__METRICS__STATSD_HOST
+      valueFrom:
+        fieldRef:
+          fieldPath: status.hostIP
+

Review comment:
       ```suggestion
   ```
   
   I think the previous approach is enough, no?

##########
File path: docs/helm-chart/production-guide.rst
##########
@@ -184,6 +184,44 @@ To use an external StatsD instance:
       statsd_host: ...
       statsd_port: ...
 
+Datadog
+^^^^^^^
+If you are using a Datadog agent in your environment, this will enable Airflow to export metrics to the Datadog agent.
+NOTE: The below is for version 2.x.x of Airflow.  In Airflow 1.x.x the swap all instances of ``metrics`` for ``scheduler``
+
+.. code-block:: yaml
+
+  statsd:
+    enabled: false
+  config:
+    metrics:
+      statsd_on: true
+      statsd_port: ``<port>``

Review comment:
       ```suggestion
         statsd_port: 8125
   ```
   
   I think we should show the default dogstastsd port, thoughts?

##########
File path: docs/helm-chart/production-guide.rst
##########
@@ -184,6 +184,44 @@ To use an external StatsD instance:
       statsd_host: ...
       statsd_port: ...
 
+Datadog
+^^^^^^^
+If you are using a Datadog agent in your environment, this will enable Airflow to export metrics to the Datadog agent.
+NOTE: The below is for version 2.x.x of Airflow.  In Airflow 1.x.x the swap all instances of ``metrics`` for ``scheduler``
+
+.. code-block:: yaml
+
+  statsd:
+    enabled: false
+  config:
+    metrics:
+      statsd_on: true
+      statsd_port: ``<port>``
+      statsd_prefix: airflow

Review comment:
       ```suggestion
   ```
   
   We don't need to show the default, do we?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] mik-laj commented on pull request #17996: Update production-guide.rst - include datadog

Posted by GitBox <gi...@apache.org>.
mik-laj commented on pull request #17996:
URL: https://github.com/apache/airflow/pull/17996#issuecomment-957026577


   We should add a section about Datadog to `apache-airflow` docs also. 
   http://airflow.apache.org/docs/apache-airflow/stable/logging-monitoring/metrics.html


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] a-nascimento commented on a change in pull request #17996: Update production-guide.rst - include datadog

Posted by GitBox <gi...@apache.org>.
a-nascimento commented on a change in pull request #17996:
URL: https://github.com/apache/airflow/pull/17996#discussion_r741130790



##########
File path: docs/helm-chart/production-guide.rst
##########
@@ -184,6 +184,44 @@ To use an external StatsD instance:
       statsd_host: ...
       statsd_port: ...
 
+Datadog
+^^^^^^^
+If you are using a Datadog agent in your environment, this will enable Airflow to export metrics to the Datadog agent.
+NOTE: The below is for version 2.x.x of Airflow.  In Airflow 1.x.x the swap all instances of ``metrics`` for ``scheduler``
+
+.. code-block:: yaml
+
+  statsd:
+    enabled: false
+  config:
+    metrics:
+      statsd_on: true
+      statsd_port: ``<port>``
+      statsd_prefix: airflow

Review comment:
       I'm not sure on this one.
   
   I did it for sake of showing the full block of configuration, didn't want someone to think it needed to be removed since it's already a part of the helm chart.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] a-nascimento commented on a change in pull request #17996: Update production-guide.rst - include datadog

Posted by GitBox <gi...@apache.org>.
a-nascimento commented on a change in pull request #17996:
URL: https://github.com/apache/airflow/pull/17996#discussion_r741028296



##########
File path: docs/helm-chart/production-guide.rst
##########
@@ -184,6 +184,44 @@ To use an external StatsD instance:
       statsd_host: ...
       statsd_port: ...
 
+Datadog
+^^^^^^^
+If you are using a Datadog agent in your environment, this will enable Airflow to export metrics to the Datadog agent.
+NOTE: The below is for version 2.x.x of Airflow.  In Airflow 1.x.x the swap all instances of ``metrics`` for ``scheduler``
+
+.. code-block:: yaml
+
+  statsd:
+    enabled: false
+  config:
+    metrics:
+      statsd_on: true
+      statsd_port: ``<port>``
+      statsd_prefix: airflow
+  extraEnv: |-
+    - name: AIRFLOW__METRICS__STATSD_HOST
+      valueFrom:
+        fieldRef:
+          fieldPath: status.hostIP
+          
+-OR-
+
+.. code-block:: yaml
+
+  statsd:
+    enabled: false
+  extraEnv: |-
+    - name: AIRFLOW__METRICS__STATSD_ON
+      value: "True"
+    - name: AIRFLOW__METRICS__STATSD_PORT
+      value: ``<port>``
+    - name: AIRFLOW__METRICS__STATSD_PREFIX
+      value: "airflow"
+    - name: AIRFLOW__METRICS__STATSD_HOST
+      valueFrom:
+        fieldRef:
+          fieldPath: status.hostIP
+

Review comment:
       I agree. If I recall correctly, I initially had issues using the main `config` block, but I believe it was a user error. I believe I went back and tested those changes.

##########
File path: docs/helm-chart/production-guide.rst
##########
@@ -184,6 +184,44 @@ To use an external StatsD instance:
       statsd_host: ...
       statsd_port: ...
 
+Datadog
+^^^^^^^
+If you are using a Datadog agent in your environment, this will enable Airflow to export metrics to the Datadog agent.
+NOTE: The below is for version 2.x.x of Airflow.  In Airflow 1.x.x the swap all instances of ``metrics`` for ``scheduler``
+
+.. code-block:: yaml
+
+  statsd:
+    enabled: false
+  config:
+    metrics:
+      statsd_on: true
+      statsd_port: ``<port>``

Review comment:
       I'm fine with that. May want to add a comment to suggest that 8125 is default for dogstatsd but may differ in deployed environment or something.

##########
File path: docs/helm-chart/production-guide.rst
##########
@@ -184,6 +184,44 @@ To use an external StatsD instance:
       statsd_host: ...
       statsd_port: ...
 
+Datadog
+^^^^^^^
+If you are using a Datadog agent in your environment, this will enable Airflow to export metrics to the Datadog agent.
+NOTE: The below is for version 2.x.x of Airflow.  In Airflow 1.x.x the swap all instances of ``metrics`` for ``scheduler``
+
+.. code-block:: yaml
+
+  statsd:
+    enabled: false
+  config:
+    metrics:
+      statsd_on: true
+      statsd_port: ``<port>``
+      statsd_prefix: airflow

Review comment:
       I'm not sure on this one.
   
   I did it for sake of showing the full block of configuration, didn't want someone to think it needed to be removed since it's already a part of the helm chart.

##########
File path: docs/helm-chart/production-guide.rst
##########
@@ -184,6 +184,44 @@ To use an external StatsD instance:
       statsd_host: ...
       statsd_port: ...
 
+Datadog
+^^^^^^^
+If you are using a Datadog agent in your environment, this will enable Airflow to export metrics to the Datadog agent.
+NOTE: The below is for version 2.x.x of Airflow.  In Airflow 1.x.x the swap all instances of ``metrics`` for ``scheduler``
+
+.. code-block:: yaml
+
+  statsd:
+    enabled: false
+  config:
+    metrics:

Review comment:
       I agree.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] github-actions[bot] commented on pull request #17996: Update production-guide.rst - include datadog

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on pull request #17996:
URL: https://github.com/apache/airflow/pull/17996#issuecomment-995089607


   The PR is likely ready to be merged. No tests are needed as no important environment files, nor python files were modified by it. However, committers might decide that full test matrix is needed and add the 'full tests needed' label. Then you should rebase it to the latest main or amend the last commit of the PR, and push it with --force-with-lease.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] boring-cyborg[bot] commented on pull request #17996: Update production-guide.rst - include datadog

Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on pull request #17996:
URL: https://github.com/apache/airflow/pull/17996#issuecomment-995294884


   Awesome work, congrats on your first merged pull request!
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] a-nascimento commented on a change in pull request #17996: Update production-guide.rst - include datadog

Posted by GitBox <gi...@apache.org>.
a-nascimento commented on a change in pull request #17996:
URL: https://github.com/apache/airflow/pull/17996#discussion_r741028296



##########
File path: docs/helm-chart/production-guide.rst
##########
@@ -184,6 +184,44 @@ To use an external StatsD instance:
       statsd_host: ...
       statsd_port: ...
 
+Datadog
+^^^^^^^
+If you are using a Datadog agent in your environment, this will enable Airflow to export metrics to the Datadog agent.
+NOTE: The below is for version 2.x.x of Airflow.  In Airflow 1.x.x the swap all instances of ``metrics`` for ``scheduler``
+
+.. code-block:: yaml
+
+  statsd:
+    enabled: false
+  config:
+    metrics:
+      statsd_on: true
+      statsd_port: ``<port>``
+      statsd_prefix: airflow
+  extraEnv: |-
+    - name: AIRFLOW__METRICS__STATSD_HOST
+      valueFrom:
+        fieldRef:
+          fieldPath: status.hostIP
+          
+-OR-
+
+.. code-block:: yaml
+
+  statsd:
+    enabled: false
+  extraEnv: |-
+    - name: AIRFLOW__METRICS__STATSD_ON
+      value: "True"
+    - name: AIRFLOW__METRICS__STATSD_PORT
+      value: ``<port>``
+    - name: AIRFLOW__METRICS__STATSD_PREFIX
+      value: "airflow"
+    - name: AIRFLOW__METRICS__STATSD_HOST
+      valueFrom:
+        fieldRef:
+          fieldPath: status.hostIP
+

Review comment:
       I agree. If I recall correctly, I initially had issues using the main `config` block, but I believe it was a user error. I believe I went back and tested those changes.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] a-nascimento commented on pull request #17996: Update production-guide.rst - include datadog

Posted by GitBox <gi...@apache.org>.
a-nascimento commented on pull request #17996:
URL: https://github.com/apache/airflow/pull/17996#issuecomment-957502264


   @jedcunningham - apologies here. I have shifted roles to a new organization, so I've been a bit in flux and unable to respond.
   
   Unfortunately, I can not currently test the suggestions above. However, I will add my comments to each based on my recollection of the issues I encountered.
   
   I hope to be back on the slack channels in a few weeks. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] a-nascimento commented on a change in pull request #17996: Update production-guide.rst - include datadog

Posted by GitBox <gi...@apache.org>.
a-nascimento commented on a change in pull request #17996:
URL: https://github.com/apache/airflow/pull/17996#discussion_r741028296



##########
File path: docs/helm-chart/production-guide.rst
##########
@@ -184,6 +184,44 @@ To use an external StatsD instance:
       statsd_host: ...
       statsd_port: ...
 
+Datadog
+^^^^^^^
+If you are using a Datadog agent in your environment, this will enable Airflow to export metrics to the Datadog agent.
+NOTE: The below is for version 2.x.x of Airflow.  In Airflow 1.x.x the swap all instances of ``metrics`` for ``scheduler``
+
+.. code-block:: yaml
+
+  statsd:
+    enabled: false
+  config:
+    metrics:
+      statsd_on: true
+      statsd_port: ``<port>``
+      statsd_prefix: airflow
+  extraEnv: |-
+    - name: AIRFLOW__METRICS__STATSD_HOST
+      valueFrom:
+        fieldRef:
+          fieldPath: status.hostIP
+          
+-OR-
+
+.. code-block:: yaml
+
+  statsd:
+    enabled: false
+  extraEnv: |-
+    - name: AIRFLOW__METRICS__STATSD_ON
+      value: "True"
+    - name: AIRFLOW__METRICS__STATSD_PORT
+      value: ``<port>``
+    - name: AIRFLOW__METRICS__STATSD_PREFIX
+      value: "airflow"
+    - name: AIRFLOW__METRICS__STATSD_HOST
+      valueFrom:
+        fieldRef:
+          fieldPath: status.hostIP
+

Review comment:
       I agree. If I recall correctly, I initially had issues using the main `config` block, but I believe it was a user error. I believe I went back and tested those changes.

##########
File path: docs/helm-chart/production-guide.rst
##########
@@ -184,6 +184,44 @@ To use an external StatsD instance:
       statsd_host: ...
       statsd_port: ...
 
+Datadog
+^^^^^^^
+If you are using a Datadog agent in your environment, this will enable Airflow to export metrics to the Datadog agent.
+NOTE: The below is for version 2.x.x of Airflow.  In Airflow 1.x.x the swap all instances of ``metrics`` for ``scheduler``
+
+.. code-block:: yaml
+
+  statsd:
+    enabled: false
+  config:
+    metrics:
+      statsd_on: true
+      statsd_port: ``<port>``

Review comment:
       I'm fine with that. May want to add a comment to suggest that 8125 is default for dogstatsd but may differ in deployed environment or something.

##########
File path: docs/helm-chart/production-guide.rst
##########
@@ -184,6 +184,44 @@ To use an external StatsD instance:
       statsd_host: ...
       statsd_port: ...
 
+Datadog
+^^^^^^^
+If you are using a Datadog agent in your environment, this will enable Airflow to export metrics to the Datadog agent.
+NOTE: The below is for version 2.x.x of Airflow.  In Airflow 1.x.x the swap all instances of ``metrics`` for ``scheduler``
+
+.. code-block:: yaml
+
+  statsd:
+    enabled: false
+  config:
+    metrics:
+      statsd_on: true
+      statsd_port: ``<port>``
+      statsd_prefix: airflow

Review comment:
       I'm not sure on this one.
   
   I did it for sake of showing the full block of configuration, didn't want someone to think it needed to be removed since it's already a part of the helm chart.

##########
File path: docs/helm-chart/production-guide.rst
##########
@@ -184,6 +184,44 @@ To use an external StatsD instance:
       statsd_host: ...
       statsd_port: ...
 
+Datadog
+^^^^^^^
+If you are using a Datadog agent in your environment, this will enable Airflow to export metrics to the Datadog agent.
+NOTE: The below is for version 2.x.x of Airflow.  In Airflow 1.x.x the swap all instances of ``metrics`` for ``scheduler``
+
+.. code-block:: yaml
+
+  statsd:
+    enabled: false
+  config:
+    metrics:

Review comment:
       I agree.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org