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

Update repo source from wrouesnel to prometheus-community #21

Open
wrossmann opened this issue Aug 24, 2022 · 0 comments
Open

Update repo source from wrouesnel to prometheus-community #21

wrossmann opened this issue Aug 24, 2022 · 0 comments

Comments

@wrossmann
Copy link

Per PR #16 the wrouesnel repo was absorbed into prometheus community some time ago. Please merge that change.

For those the wish to make it work in the meantime just set the following variables:

postgres_exporter_url: "https://github.com/prometheus-community/postgres_exporter/releases/download/v{{ postgres_exporter_version }}/{{ postgres_exporter_dist }}.tar.gz"
postgres_exporter_dist: postgres_exporter-{{ postgres_exporter_version }}.linux-amd64

Additionally, to use a more recent version than 0.8.0 [current default in this role] you will likely need to change to a different DSN format:

postgres_exporter_datasource: "postgresql://postgres@:5432/postgres?host=/var/run/postgresql/&sslmode=disable"

And, just for the sake of convenience, you can use the below to use the most recent exporter version as of this writing:

postgres_exporter_version: "0.11.1"
postgres_exporter_checksum: "sha256:ec27e2a52b764c4313076ea6db335607cc40fb8a503dcb74d9517dc8baf049f0"

Though you'll likely also need to override the queries.yml that ships with this role, as it is also outdated. You can get it from:

https://github.com/prometheus-community/postgres_exporter/blob/v0.11.1/queries.yaml

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

1 participant