Skip to content

Postgres exporter is out of date #62

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

Closed
robertbublik opened this issue Sep 25, 2024 · 7 comments
Closed

Postgres exporter is out of date #62

robertbublik opened this issue Sep 25, 2024 · 7 comments

Comments

@robertbublik
Copy link

I noticed that the image of the postgres exporter in the dbinstances chart uses the latest tag and the last update was over 4 years ago. From what I see this is the currently maintained postgres exporter:

https://github.com/prometheus-community/postgres_exporter
https://github.com/prometheus-community/helm-charts/tree/main/charts/prometheus-postgres-exporter

Unfortunately it's not possible to simply change the image in the dbinstances chart because there are many incompatible changes like different ports the application listens on. The current exporter runs on 60000 while the updated one runs on 9187.

I would like to upgrade the exporter and also add podmonitor support.
Is this fine for you @allanger?

@allanger
Copy link
Member

allanger commented Sep 25, 2024

Yep, sure, I'm not really using exporters atm, so I couldn't have noticed it.
Though I don't like helm dependencies, maybe this is a good place for adding one? As I see they don't have podMonitors in their chart, but it should be possible to add them via extraManifests, and then we won't have to maintain the exporter anymore at all.

But if you think that it's not a good idea, you can also put all the templates to our chart, and also probably add tests for podMonitor as now we only have serviceMonitors covered

@mario-steinhoff-gcx
Copy link

Though I don't like helm dependencies, maybe this is a good place for adding one?

The db-instances chart currently generates one exporter Deployment per DbInstance. I'm not sure if helm can instantiate the same dependency dynamically multiple times.

The current exporter runs on 60000 while the updated one runs on 9187.

Not sure what the default port was back then but the db-instances helm chart overrides this port via a environment variable that was removed last year:

I dont know if there was a particular reason to choose a non-default port, if not I'd suggest to stick to the defaults.

General question: is the db-instances helm chart strictly tied to the implementation of db-operator and must always be used, or rather provided as a convenient mechanism to create DbInstance custom resources?

@allanger
Copy link
Member

The db-instances chart currently generates one exporter Deployment per DbInstance. I'm not sure if helm can instantiate the same dependency dynamically multiple times.

Aye, sure, I haven't though about that, than we need to put them to templates

I dont know if there was a particular reason to choose a non-default port, if not I'd suggest to stick to the defaults.

I am not aware of the reasons, to be honest, I would also use the default one, I don't think there are reasons to stay with the custom one

General question: is the db-instances helm chart strictly tied to the implementation of db-operator and must always be used, or rather provided as a convenient mechanism to create DbInstance custom resources?

Second, you don't have to use the chart, if you don't want

@robertbublik
Copy link
Author

robertbublik commented Sep 27, 2024

@allanger could you please have a quick look at my draft PR if the changes look fine for you? Then I would start working on the test coverage. I'm not sure if you rely on your custom queries, they have been deprecated with lots of other features. 🌞

@allanger
Copy link
Member

I've had a look and put a couple of comments there

@allanger
Copy link
Member

allanger commented Oct 7, 2024

Can we close it now?

@robertbublik
Copy link
Author

Yes I haven't found any issues.

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

3 participants