Ask questionsVery high memory usage in some cases
I've been running this exporter on many Postgres instances and I've had cases where it eventually reached 4GB+ of mem and almost 100% CPU usage of 6 cores. In this specific case, the postgres_exporter is running on a Postgres host which does have very high query volumes at time, and some queries can be large. I'm just trying to determine if this is something that can normally occur, or if it's a potential memory leak?
If it's a valid behavior, then I'd like to understand in better details the exact specifics to the high mem and CPU usage? Thanks for your help.
Answer questions treksler
also noticing a slow memory leak, after a few weeks of running the exporter, it slowly chews up all the available ram observed, using v0.7.0 the red line is container memory use over 2 weeks. It was consuming over 5GB of ram before I killed it.
edit: looks like the container could not connect to postgres. i.e. the exporter is leaking memory, if it can't connect to postgres