Skip to content
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

Missing pg_stat_statements Metrics #1019

Open
wildhi opened this issue Apr 11, 2024 · 1 comment
Open

Missing pg_stat_statements Metrics #1019

wildhi opened this issue Apr 11, 2024 · 1 comment

Comments

@wildhi
Copy link

wildhi commented Apr 11, 2024

We had installed the helm chart to collect metrics from postgres. We can Collect very nice metrics, but we can´t find Metrics with 'pg_stat_statements'.
We had activate the Extenstion and also in Config Files 'shared_preload_libraries', and i can select Data with the Username from Collector with 'SELECT * FROM pg_stat_statements;'.
But only metrics from 'settings' is found, for example 'pg_settings_pg_stat_statements'

  • postgres_exporter version:
    v0.15.0

  • PostgreSQL version:

psql (PostgreSQL) 12.17

what is my mistake ?

@wildhi
Copy link
Author

wildhi commented Apr 12, 2024

I Found the Line
https://github.com/prometheus-community/postgres_exporter/blob/master/collector/pg_stat_statements.go#L95
this query can´t run on PSQL Version 12.17 because Column Names are different.

Also this line
https://github.com/prometheus-community/postgres_exporter/blob/master/collector/pg_stat_statements_test.go#L35

I´m right there ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant