xBis7 commented on code in PR #56150:
URL: https://github.com/apache/airflow/pull/56150#discussion_r2395390642


##########
airflow-core/docs/administration-and-deployment/logging-monitoring/metrics.rst:
##########
@@ -69,11 +69,48 @@ Add the following lines to your configuration file e.g. 
``airflow.cfg``
 
     [metrics]
     otel_on = True
-    otel_host = localhost
-    otel_port = 8889
     otel_prefix = airflow
-    otel_interval_milliseconds = 30000  # The interval between exports, 
defaults to 60000
-    otel_ssl_active = False
+
+Configure the SDK, by exporting the regular OpenTelemetry variables to your 
environment
+
+.. code-block:: ini
+
+    - exporter
+      |_ values: 'otlp', 'console'
+      |_ default: 'otlp'
+    OTEL_METRICS_EXPORTER
+
+    - export protocol
+      |_ values: 'grpc', 'http/protobuf'
+      |_ default: 'grpc'
+    OTEL_EXPORTER_OTLP_PROTOCOL
+
+    - endpoint
+      |_ example for grpc protocol: 'http://localhost:4317'
+      |_ example for http protocol: 'http://localhost:4318/v1/metrics'
+      |_ if SSL is enabled, use 'https' instead of 'http'
+    OTEL_EXPORTER_OTLP_ENDPOINT
+      or
+    OTEL_EXPORTER_OTLP_METRICS_ENDPOINT
+
+    - service name
+      |_ default: 'Airflow'
+    OTEL_SERVICE_NAME
+
+    - resource attributes
+      |_ values: 'key1=value1,key2=value2,...'
+      |_ example: 'service.name=my-service,service.version=1.0.0'
+    OTEL_RESOURCE_ATTRIBUTES
+
+    - list of headers to apply to all outgoing metrics
+      |_ values: 'key1=value1,key2=value2,...'
+      |_ example: 'api-key=key,other-config-value=value'
+    OTEL_EXPORTER_OTLP_HEADERS
+
+    - export interval
+      |_ values: integer or float
+      |_ default: 60000

Review Comment:
   I set it to 60.000 because that's the default in `config.yml` in `main`.
   
   
https://github.com/apache/airflow/blob/main/airflow-core/src/airflow/config_templates/config.yml#L1221



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to