epoch8 / airflow-exporter

Airflow plugin to export dag and task based metrics to Prometheus.
Other
248 stars 75 forks source link

Plugin loaded multiple times in webserver #91

Open twbecker opened 3 years ago

twbecker commented 3 years ago

We're experimenting with the airflow-exporter and noticed that the plugin seems to be loaded more than once. Using airflow 2.0.1 and airflow-exporter 1.4.1 installed via pip. The plugin appears twice in the list under Admin | Plugins, as does the Metrics menu item. This using python 3.6.6 on Centos 7. See attached screenshot.

pluginDuplicated

elephantum commented 3 years ago

What's interesting - RBACMetrics object is exactly the same (has the same memory address)

So it seems that "registering" happens twice for some reason.

We'll try to reproduce

Flogue commented 3 years ago

image

I have the same issue on Airflow v2.1.2, Python 3.7.9. Our Admin user is Public (we disabled authentication)