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

Support multiple postgres hosts #988

Open
r65535 opened this issue Feb 3, 2025 · 0 comments
Open

Support multiple postgres hosts #988

r65535 opened this issue Feb 3, 2025 · 0 comments

Comments

@r65535
Copy link

r65535 commented Feb 3, 2025

Describe the feature request

I want to use a highly available postgres instance with gatus

Golang's stdlib database/sql doesn't support multiple hostnames to enable failover using the following type of connection string:
postgres://user:password@host1,host2,host3/db?target_session_attrs=primary

Changing the library used for postgres connections to something like github.com/jackc/pgx/v5 would support this feature (and lots of other connection types)

Why do you personally want this feature to be implemented?

Currently I have to manually edit the config file for gatus when the DB fails over

How long have you been using this project?

1 year

Additional information

Happy to PR this change, if it's accepted!

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