-
Notifications
You must be signed in to change notification settings - Fork 6
🐛 Fix: postgres query exporter staying disconnected when postgres is (briefly) offline #1207
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
Merged
mrnicegyu11
merged 42 commits into
ITISFoundation:main
from
mrnicegyu11:2025/fix/pgQueryExporter
Sep 12, 2025
Merged
🐛 Fix: postgres query exporter staying disconnected when postgres is (briefly) offline #1207
mrnicegyu11
merged 42 commits into
ITISFoundation:main
from
mrnicegyu11:2025/fix/pgQueryExporter
Sep 12, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…oundation#979) * Introduce longhorn chart * Further longhorn configuration * Longhorn: further settings configuration * Fix longhorn configuration bugs Extra: introduce longhorn pv vales for portainer * Add comment for deletion longhorn * Further longhorn configuration * Add README.md for Longhorn wit FAQ * Update Longhorn readme * Update readme * Futher LH configuration * Update LH's Readme * Update Longhorn Readme * Improve LH's Readme * LH: Reduce reserved default disk space to 5% Since we use a dedicated disk for LH, we can go ahead with 5% * Use values to set Longhorn storage class * Update LH's Readme * LH Readme: add requirements reference * PR Review: bring back portainer s3 pv * LH: decrease portinaer volume size
tested on osparc.local |
YuryHrytsuk
reviewed
Sep 11, 2025
YuryHrytsuk
reviewed
Sep 11, 2025
YuryHrytsuk
approved these changes
Sep 11, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What do these changes do?
Fixes #1112
If postgres goes offline / is restarted, the postgres query exporter will disconnect and stay disconnected from postgres, logging an error approx. every minute when trying to execute the postgres query. This PR introduces a healthcheck based on listening to the low-level linux TCP socket file of
master_postgres:5432
. If postgres is offline, either the DNS name resolve or the TCP connection will fail. The healthcheck will then cause a new postgres query exporter container to be created, hopefully addressing the issue. Note that postgres communicates using raw TCP, and not HTTP(s).Bonus: Updates docker image of the postgres query exporter.
Related issue/s
#1112
Related PR/s
Checklist