getsentry / airflow-metrics

Metrics for airflow
Apache License 2.0
14 stars 6 forks source link

Static Tags #43

Closed Westermann closed 2 years ago

Westermann commented 5 years ago

It would be nice if it was possible to add static tags (e.g. for that airflow deployment) through the connection that are sent with all metrics. E.g. configure the connection as follows:

{
  "api_key": "XXXX...XXX",
  "tags": {
    "environment": "staging",
    "deployment": "company-a"
  }
}

and then those tags get sent with every metric.

mikeclarke commented 5 years ago

@Westermann great suggestion, thanks. Do you have thoughts on how these might be configured, maybe via airflow.cfg?

Westermann commented 5 years ago

In the above example I was thinking mostly about configuring it from the UI but if you don't use it then I suppose just a JSON in the the airflow.cfg should do, no?