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

Exporter Errors for Two Metrics #7

Open
kyle-rf opened this issue Jan 19, 2022 · 1 comment
Open

Exporter Errors for Two Metrics #7

kyle-rf opened this issue Jan 19, 2022 · 1 comment

Comments

@kyle-rf
Copy link

kyle-rf commented Jan 19, 2022

What did you do?
Upgraded postgres operator to 4.7.4
Upgraded a running cluster

What did you expect to see?
Continued functioning as before upgrade

What did you see instead? Under which circumstances?
The exporter container is logging the following errors:
"Error running query on database "127.0.0.1:5432": ccp_pg_stat_statements_reset pq: function monitor.pg_stat_statements_reset_info(integer) does not exist"

"Error running query on database "127.0.0.1:5432": ccp_nodemx_data_disk pq: query-specified return tuple and function return type are not compatible"

Environment

  • System information:

    Linux 5.4.0-70-generic x86_64

  • postgres_exporter version:

	registry.developers.crunchydata.com/crunchydata/crunchy-postgres-exporter:centos8-4.7.4
  • postgres_exporter flags:

I don't what exporter flags are

  • PostgreSQL version:
        13.5
	registry.developers.crunchydata.com/crunchydata/crunchy-postgres-ha:centos8-13.5-4.7.4
  • Logs:
"Error running query on database "127.0.0.1:5432": ccp_pg_stat_statements_reset pq: function monitor.pg_stat_statements_reset_info(integer) does not exist"

"Error running query on database "127.0.0.1:5432": ccp_nodemx_data_disk pq: query-specified return tuple and function return type are not compatible"
@keithf4
Copy link

keithf4 commented Jan 19, 2022

You may need to open an issue with the Operator team. https://github.com/CrunchyData/postgres-operator

That monitor.pg_stat_statements_reset_info function is handled by the setup file in pgmonitor

https://github.com/CrunchyData/pgmonitor/blob/main/postgres_exporter/common/pg13/setup.sql#L423

And the pg_nodemx functions are specific to the container environment and are part of this extension - https://github.com/CrunchyData/pgnodemx

How the operator takes care of updating these objects and extensions as part of its updates are specific to the operator itself.

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

2 participants