Skip to content

Conversation

SimonSerrano
Copy link
Contributor

PR Description

Which issue(s) this PR fixes

Fixes #4004

Notes to the Reviewer

To fix this, the code heavily relies on Kingpin and the naming of the argument on the upstream repo https://github.com/prometheus-community/postgres_exporter. This is the best I could come up with without changing the upstream first. If you have another approach given your experience, I will happily change this PR.

PR Checklist

  • CHANGELOG.md updated
  • Documentation added
  • Tests updated

@SimonSerrano SimonSerrano requested review from a team and clayton-cornell as code owners September 7, 2025 14:27
@SimonSerrano
Copy link
Contributor Author

@dehaansa Hello, I would be very happy to have a review from you 😊

@cristiangreco
Copy link
Contributor

@SimonSerrano there are some failing tests in internal/component/prometheus/exporter/postgres/postgres_test.go. Otherwise this is mostly looking good to me 👍

@SimonSerrano
Copy link
Contributor Author

Alright, I am fixing the failing test and we should be good 😁

@cristiangreco
Copy link
Contributor

Alright, I am fixing the failing test and we should be good 😁

Thanks for looking into it. CI is still red unfortunately, there are a few more things that need to be updated I guess.

@SimonSerrano SimonSerrano marked this pull request as draft September 19, 2025 20:35
@SimonSerrano SimonSerrano marked this pull request as ready for review October 8, 2025 17:18
@cristiangreco cristiangreco merged commit 875ce0f into grafana:main Oct 9, 2025
47 of 50 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.

postgres_exporter: expose stat_statements.include_query

5 participants