-
Notifications
You must be signed in to change notification settings - Fork 93
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
postgres exporter errors - database is closed #430
Comments
Not quite sure what the The @andrewlecuyer any ideas here how these issues crept up in the container? |
@cassanellicarlo what is the current status of this Postgres Pod? Is it up-and-running, and ready? Considering the following error: Error opening connection to database (postgresql://ccp_monitoring:PASSWORD_REMOVED@localhost:5432/postgres): pq: the database system is in recovery mode" It looks like the exporter is simply unable to connect to the database. What do the Postgres logs show for this PG instance? My hunch here is that the issue is with Postgres itself, and the exporter is simply unable to connect. |
@andrewlecuyer Postgres is running. The instance is 5/5 Ready and Running. These are the logs
Previous logs:
Seems like the exporter got stuck when the database was not available (2024-09-02) / during a failover and then it couldn't recover anymore (postgres_exporter_watcher: line 24: 146 Killed). |
Describe the issue:
I'm running a PostgresCluster with pgo operator v5.5.0.
There are errors in the exporter container. Metrics cannot be scraped by prometheus - target is down.
Error running query on database - database is closed
postgres_exporter_watcher: line 24: 146 Killed postgres_exporter "${postgres_exporter_flags[@]}"
Logs
If i try to call the metrics endpoint, i get the following logs
An error has occurred while serving metrics:
Describe the expected behavior:
pgo exporter works well and prometheus can scrape metrics.
Tell us about your environment:
What could be the issue? Do you have an idea?
Thanks.
The text was updated successfully, but these errors were encountered: