xBis7 commented on code in PR #69371:
URL: https://github.com/apache/airflow/pull/69371#discussion_r3547181112
##########
airflow-core/docs/administration-and-deployment/logging-monitoring/metrics.rst:
##########
@@ -181,6 +183,55 @@ to the stat name if necessary, and returns the transformed
stat name. The functi
return stat_name.lower()[:32]
+Custom Metrics
+--------------
+
+You can emit your own metrics from inside a task, plugin, or custom operator
through
+the same stats client Airflow uses internally. In Airflow 3 the recommended
import
Review Comment:
You should be more specific about the Airflow version. The module-level
functions are available from 3.3.0 and afterwards. If you are in a prior
version, then you need to use the `Stats` class.
--
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]