-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PostgreSQL CPU consumption #115
Comments
It looks like this counts the number of DAG runs grouped by status since the beginning of time, meaning that CPU will climb endless over time as more history is accumulated. https://github.com/epoch8/airflow-exporter/blob/master/airflow_exporter/prometheus_exporter.py#L110
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello to all developers,
I am using this exporter with an Airflow instance having around 80 dags. I have recently figured out that querying
/admin/metrics
endpoint every 30s kills my PostgreSQL database. Each request to get the metrics takes around 18 to 22s and it is causing 100% CPU usage on the instance. While disabled, PostgreSQL is used only in 10-20%. Is there anything we can do about it with this exporter?Kind regards,
Szymon
The text was updated successfully, but these errors were encountered: