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

Allow monitoring non-Heroku databases on Heroku #678

Merged
merged 2 commits into from
Feb 18, 2025

Conversation

msakrejda
Copy link
Contributor

Currently, we assume that a Heroku-deployed collector will always
monitor Heroku databases specified through Heroku env config
(HEROKU_POSTGRES_..._URL values). It's possible to work around this
with CONFIG_CONTENTS, but can be an awkward workflow.

Allow monitoring databases deployed elsewhere by checking for
pganalyze-specific env vars first.

Currently, we assume that a Heroku-deployed collector will always
monitor Heroku databases specified through Heroku env config
(`HEROKU_POSTGRES_..._URL` values). It's possible to work around this
with `CONFIG_CONTENTS`, but can be an awkward workflow.

Allow monitoring databases deployed elsewhere by checking for
pganalyze-specific env vars first.
@msakrejda msakrejda requested a review from a team February 15, 2025 00:16
@msakrejda msakrejda mentioned this pull request Feb 15, 2025
An env-based install can use the default DB_NAME, so we must account
for that.
@msakrejda msakrejda merged commit c641e21 into main Feb 18, 2025
3 checks passed
@msakrejda msakrejda deleted the allow-monitoring-non-heroku-databases-on-heroku branch February 18, 2025 20:51
msakrejda added a commit that referenced this pull request Feb 18, 2025
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

Successfully merging this pull request may close these issues.

2 participants