Closed uqix closed 3 years ago
@uqix I have the exact same issue, could you please tell me how you solved it?
@headyj we need to enable pg_stat_statements
on pg side:
https://www.postgresql.org/docs/11/pgstatstatements.html
CREATE EXTENSION pg_stat_statements;
for any database you want to monitore.g. postgresql.conf
shared_preload_libraries = 'pg_stat_statements'
# default=5000
pg_stat_statements.max = 10000
# default=top
pg_stat_statements.track = all
Thank your for your answer @uqix , unfortunately I already did that but it's still not working :(
No pg_stat_activity_count metric scraped with default helm chart values(with correct datasource config) and default postgresql 11.10 config, here is postgres_exporter pod log: