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

Option to change the listen address and upgrade to latest #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
---
# defaults file for prometheus-postgres

prometheus_postgres_version: 0.9.0
prometheus_postgres_version: 0.15.0

prometheus_postgres_dbname: postgres
prometheus_postgres_data_source_name: "user=postgres dbname=\
{{ prometheus_postgres_dbname }} host=/var/run/postgresql/ sslmode=disable"

prometheus_postgres_address: 0.0.0.0
prometheus_postgres_port: 9187

prometheus_postgres_query_filenames:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ User={{ prometheus_postgres_system_user }}
Environment="DATA_SOURCE_NAME={{ prometheus_postgres_data_source_name }}"
ExecStart=/opt/prometheus/postgres_exporter/postgres_exporter \
--extend.query-path /etc/prometheus/postgres-queries.yml \
--web.listen-address :{{ prometheus_postgres_port }}
--web.listen-address {{ prometheus_postgres_address }}:{{ prometheus_postgres_port }}

[Install]
WantedBy=multi-user.target