diff --git a/airflow_prometheus_exporter/prometheus_exporter.py b/airflow_prometheus_exporter/prometheus_exporter.py index 232d458..bcb539f 100644 --- a/airflow_prometheus_exporter/prometheus_exporter.py +++ b/airflow_prometheus_exporter/prometheus_exporter.py @@ -6,7 +6,7 @@ from airflow.configuration import conf from airflow.models import DagModel, DagRun, TaskInstance, TaskFail, XCom from airflow.plugins_manager import AirflowPlugin -from airflow.settings import RBAC, Session +from airflow.settings import Session from airflow.utils.state import State from airflow.utils.log.logging_mixin import LoggingMixin from flask import Response @@ -18,6 +18,7 @@ from airflow_prometheus_exporter.xcom_config import load_xcom_config CANARY_DAG = "canary_dag" +RBAC = "True" @contextmanager