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

Adding pgsql datasource for Grafana #187

Merged
merged 1 commit into from
Oct 10, 2024

Conversation

marcleblanc2
Copy link
Contributor

@marcleblanc2 marcleblanc2 commented Oct 9, 2024

Description

For PS-83: Create pgsql datasource in Grafana


Checklist

Test plan

Tested on test instance for upgrades and new installs, with and without the env vars configured

Alternatives Considered

I tried to change the existing ConfigMap just mounted as a single file inside the directory, so then I could just add Postgres via a separate ConfigMap via subDir mount, but that threw Grafana for a loop because the datasources.yml file is not declarative (ex. Terraform), but just an input ingestion method to Grafana's config state (maintained in a MongoDB inside the Grafana container?), and when the datasources.yml file gets a new inode on an existing instance, Grafana fails to start up, because we have default:true on Prometheus, so Grafana seeing the same Prometheus data source in a new file at a new inode, so it errors out like we're trying to declare a second Prometheus datasource as also default, without first deleting the first one... we'd have to also migrate the Grafana config on existing instances by declaring a delete datasources block to delete the existing default Prometheus before creating a "new" one, and if we're going through all that, I'd say we should also set prune:true to cover us for the next time someone needs to change something, but that feature's not available in v7.5 🤦

@marcleblanc2 marcleblanc2 requested review from a team, Chickensoupwithrice and DaedalusG and removed request for a team, Chickensoupwithrice and DaedalusG October 9, 2024 05:30
@marcleblanc2 marcleblanc2 merged commit b816b4b into main Oct 10, 2024
9 checks passed
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