Open KaczDev opened 2 weeks ago
This appears to be an issue that was resolved in newer releases of the postgres prometheus exporter. Will take a look at updating the exporter version that is bundled with Alloy. Thanks for the detailed bug report!
After some testing, it appears that while other connection leaks have been fixed, this is still an issue in v0.15.0 of the prometheus exporter. Looking into fixing the issue upstream.
What's wrong?
I have noticed that at one of our production servers there way too many go routines reported in comparison to other instances.
When I checked the logs I found that there are issues with connectin to the PostgreSQL database using
prometheus.exporter.postgres
.I have reproduced the issue with an Alloy instance that has configured a postgres exporter to a database that it cannot connect to (pg_hba rejected or simply the db doesn't exist).
Steps to reproduce
Create a
prometheus.exporter.postgres
component and configure the URL to a non-existing postgresql URL.System information
No response
Software version
Grafana Alloy v.1.4.2
Configuration
Logs