Open vvitad opened 7 months ago
expiration: 1m
also isn't helping
I am also experiencing this bug.
OS: Amazon Linux 2 Docker image: 2.10.0
I have attempted it with the following:
OS: Ubuntu 24.04 Snap: 2.10.0
I have also tested version 2.9.0 with the same issue.
Same configuration for both to a Postgres RDS server.
If query exporter is left running, it will eventually consume all system memory, leading to a freeze.
@GSX1400 we couldn't resolve this problem and chose another exporter burningalchemist/sql_exporter
In time RAM utilization has been increasing
Exporter has shown huge RAM utilization up to 2GB that is progressing in time. Starting with 50MB it has grown to 1GB in 10 days. Other Postgres instance showed 50MB to 2GB in 7 days. Others has shown smaller growth: 30MB to 100MB in 10 days. After restarting the service, which is used to start exporter, memory 'returns', but than utilization starts to increase once again.
Installation details
To Reproduce
Such a huge increase is reproducing only on some instances, but the only difference between them - is the number of metrics retrieved(depends on the amount of queries and tables in database). I can't see how it can be the reason to not letting the memory go.
metrics: pg_table_seq_scan: type: counter description: Number of sequential scans initiated on the table labels: [datname, schemaname, relname, parent_relname] ....
queries: table_stats: interval: 1h databases: [dbname] metrics:
/usr/local/query_exporter/bin/query-exporter /etc/query_exporter/config.yml --host 0.0.0.0 --port 9560
PG_DATABASE_DSN_dbname=postgresql://exporter_user>:<password>@<host.ru:/dbname?target_session_attrs=read-write&application_name=query_exporter