Replies: 6 comments 5 replies
-
@cbuffett |
Beta Was this translation helpful? Give feedback.
-
@cbuffett |
Beta Was this translation helpful? Give feedback.
-
We can have the key:value/key=value based tags in DAGs. While emitting the metrics with dag_id tag key, then we can enrich it with additional dag tags. We can skip the dag tags that don't follow the key-value format. |
Beta Was this translation helpful? Give feedback.
-
The idea is interesting, and I'm not against it at all if it'll work, but it's maybe not trivial. What would be the expected order of priority if the user adds a tag with an existing key, for example? |
Beta Was this translation helpful? Give feedback.
-
@hussein-awala / @jedcunningham / @potiuk / @kaxil / @eladkal |
Beta Was this translation helpful? Give feedback.
-
I believe prefixing with the label on tag names is a good idea. I prefer to
have the delimiter to have '.' instead of '-' (e.g. env.xyz dagrun.xyz
task.xyz) though. Just a preference.
…On Fri, Aug 16, 2024 at 7:57 AM Gopal Dirisala ***@***.***> wrote:
@hussein-awala <https://github.com/hussein-awala> / @jedcunningham
<https://github.com/jedcunningham> / @potiuk <https://github.com/potiuk>
/ @kaxil <https://github.com/kaxil> / @eladkal
<https://github.com/eladkal>
WDYT about this feature in Airflow 3.
—
Reply to this email directly, view it on GitHub
<#36711 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHZNLLTK2QIFDH5UE4XGMDTZRXZLBAVCNFSM6AAAAABBV7OEUWVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMZVHA3TQMY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Description
With the ability to include tags for both Datadog and Telegraf metrics, it doesn't currently appear possible to include any custom tags defined on the DAG as part of those metrics. Telegraf for instance, supports including arbitrary key/value pairs as part of the metric name, but the set of tags that are included are limited, e.g., TaskInstance includes only
dag_id
andtask_id
Use case/motivation
We include several metadata tags in our DAGs that we'd like to use as filters within our TIG stack, for example things like environment or stakeholder. One idea would be to modify DAG tags to add support for a dictionary and then use those tags wherever metrics are emitted.
Related issues
No response
Are you willing to submit a PR?
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions