Allow OTel metrics to work with postgres versions greater than 17. If… #4329
+199
−15
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.
… postgres_exporter is used with postgres versions greater than 17, create a warning event and set the setup.sql blank.
Checklist:
Type of Changes:
What is the current behavior (link to any open issues here)?
Currently, if you are using either metrics exporter (OTel or
postgres_exporter) with a postgres version greater than 17, you will get a reconciler error and metrics will not work.What is the new behavior (if this is a feature change)?
You can now get metrics with pg > 17 if you use OTel as your exporter. We will not support
postgres_exporterwith pg versions greater than 17. If you attempt to usepostgres_exporterwith pg > 17, you will see a warning event and the metrics will essentially be turned off.Other Information: