Open lelvisl opened 5 years ago
@lelvisl can you give complete use case for this functionality?
I need some opportunity to monitor status of my dugs. Example - how many rows had selected from source. (Some of my dags lasts more then 9 hours). In dag I can update Xcom variable.
(Now I try to use http in python operator & prom push gateway)
P.S. Спасибо за очень полезный плагин!
(я оставлю обсуждение на английском, мало ли кто подключится)
There's a problem with exporting Dag/Task specific metrics to prometheus: Airflow does not guarantee that Task runs at scheduled date (there might be delay between scheduling and running or Task can be backfilled).
So metrics in prometheus would not line up with logical execution date.
We have similar need (to monitor custom metrics from dags) and I was thinking that it might be an extension of Airflow graphing functionality (Landing times, Task duration etc). So different plugin or patch to Airflow.
Yes, you right, xcom variables is not the right decision.
As I understood, there is two ways:
It may be useful to export XCOM variables for monitoring dag/task progress.