postgres_exporter
postgres_exporter copied to clipboard
Update queries.yaml
It's not clear what the intent of this PR is. The queries.yaml file is being deprecated in the near future.
The intent of this PR is evidently to update the syntax from postgres 12 (and older) to postgres 13+ (noting postgres 15 is current now).
https://www.postgresql.org/docs/current/pgstatstatements.html
It's not clear what the intent of this PR is. The queries.yaml file is being deprecated in the near future.
what does it mean? are you planning to remove the ability to run extra queries?
what does it mean? are you planning to remove the ability to run extra queries?
Correct. We plan to remove this feature entirely as we migrate each postgres feature collector to Go code. By moving the queries into Go, we can better support multiple versions of PostgreSQL automatically. This is how it's done in the MySQL exporter and it is a far better user experience.
Most of the use of queries.yaml (business metrics, not PostgreSQL server metrics) is actually better suited for the more generic sql_exporter.
what does it mean? are you planning to remove the ability to run extra queries?
Correct. We plan to remove this feature entirely as we migrate each postgres feature collector to Go code. By moving the queries into Go, we can better support multiple versions of PostgreSQL automatically. This is how it's done in the MySQL exporter and it is a far better user experience.
Most of the use of queries.yaml (business metrics, not PostgreSQL server metrics) is actually better suited for the more generic sql_exporter.
So you're suggesting to NOT use custom queries but one instance of the sql_exporter
to run business queries?
@mcosta74 That is correct.
Thanks for the info. I'm trying sql_exporter and it's exactly what I was looking for.
==============
Massimo Costa
Il mar 9 mag 2023, 10:42 Joe Adams @.***> ha scritto:
@mcosta74 https://github.com/mcosta74 That is correct.
— Reply to this email directly, view it on GitHub https://github.com/prometheus-community/postgres_exporter/pull/625#issuecomment-1539232444, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA4I7OKMQ2SLJTPAR2YXMODXFH7P7ANCNFSM5RNFPUCA . You are receiving this because you were mentioned.Message ID: @.***>
queries.yaml is now deprecated. Updates should now go into the collector
package.