GitHub user aeroyorch created a discussion: How to define custom metrics
Is there any recommended way to define and emit custom metrics in Airflow?
For example using custom stats like:
```python
from airflow.sdk.observability import stats
stats.gauge("my_service.queue_depth", 42)
# ...and similarly stats.incr(...) / stats.decr(...) / stats.timing(...) /
stats.timer(...)
```
If this is the case, a dedicated "Custom Metrics" section in
`airflow-core/docs/administration-and-deployment/logging-monitoring/metrics.rst`
would be very helpful.
GitHub link: https://github.com/apache/airflow/discussions/69096
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]