Skip to content
This repository was archived by the owner on Jul 28, 2026. It is now read-only.

Update Postgres Exporter to v0.10.0 - #774

Merged
mattdurham merged 4 commits into
mainfrom
rgeyer/pgsql-exporter-integration-update
Jul 23, 2021
Merged

Update Postgres Exporter to v0.10.0#774
mattdurham merged 4 commits into
mainfrom
rgeyer/pgsql-exporter-integration-update

Conversation

@rgeyer

@rgeyer rgeyer commented Jul 22, 2021

Copy link
Copy Markdown
Contributor

PR Description

Bumps the version of the postgres exporter to resolve some performance issues for existing users.

Which issue(s) this PR fixes

Notes to the Reviewer

PR Checklist

  • CHANGELOG updated
  • Documentation added
  • Tests updated

@rgeyer
rgeyer requested review from mattdurham and rfratto July 22, 2021 22:58
Comment thread pkg/integrations/postgres_exporter/postgres_exporter.go

@rgeyer rgeyer left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple things...

Comment thread go.mod
github.com/drone/envsubst v1.0.2
github.com/fatih/structs v1.1.0
github.com/go-kit/kit v0.10.0
github.com/go-kit/kit v0.11.0

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are a few drive-by updates in go.mod and go.sum. I'll confess to still being a bit of a n00b WRT go modules, so I think these are okay, but I am not 100% sure.

The agent still builds. and tests still pass, so I think we're good.

Part of the extensive nature of the change here is that the postgres exporter repo changed from github.com/wrouesnel/postgres_exporter to github.com/prometheus-community/postgres_exporter.

Due to my go mod inexperience, I did a go mod tidy which... May be wrong.

DisableSettingsMetrics bool `yaml:"disable_settings_metrics,omitempty"`
AutodiscoverDatabases bool `yaml:"autodiscover_databases,omitempty"`
ExcludeDatabases []string `yaml:"exclude_databases,omitempty"`
IncludeDatabases []string `yaml:"include_databases,omitempty"`

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I deliberately did not add the "metricPrefix" option which is new in the latest version of the exporter. My thinking is that we want to be opinionated about metric names/namespaces in the agent.

Comment thread CHANGELOG.md Outdated
@@ -1,5 +1,7 @@
# Main (unreleased)

- [ENHANCEMENT] Update postgres_exporter to a [branch of](https://github.com/grafana/postgres_exporter/tree/exporter-package-v0.10.0) v0.10.0

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you move this below the other enhancements? We try to keep the CHANGELOG sorted first by FEATURE > ENHANCEMENT > BUGFIX > CHANGE > DEPRECATION, and then by date per category.

@mattdurham
mattdurham merged commit 1e5f153 into main Jul 23, 2021
@mattdurham
mattdurham deleted the rgeyer/pgsql-exporter-integration-update branch July 23, 2021 16:30
@mattdurham mattdurham mentioned this pull request Sep 7, 2021
3 tasks
mattdurham pushed a commit that referenced this pull request Nov 11, 2021
* Update postgres exporter version

* Update changelog with postgres exporter version bump

* Preferred ordering in Changelog. Updated postgres integration docs to reflect new configuration options

* Set the default metric prefix
@github-actions github-actions Bot added the frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed. label Apr 11, 2024
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Apr 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants