-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add service_registry options (none|consul|etcd|both)
* also add node_exporter_enabled, pg_exporter_enabled, pgbouncer_exporter_enabled options
- Loading branch information
Showing
20 changed files
with
156 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,28 @@ | ||
--- | ||
# - postgres monitor settings - # | ||
exporter_metric_path: /metrics | ||
node_exporter_port: 9100 | ||
pg_exporter_port: 9630 | ||
pg_exporter_config: pg_exporter.yaml | ||
pgbouncer_exporter_port: 9631 | ||
pg_localhost: /var/run/postgresql | ||
#------------------------------------------------------------------------------ | ||
# MONITOR PROVISION | ||
#------------------------------------------------------------------------------ | ||
# - common - # | ||
exporter_metrics_path: /metrics # default metric path for pg related exporter | ||
exporter_binary_install: false # install exporter via copy local binary (from files/{pg,node}_exporter) | ||
|
||
# - node exporter - # | ||
node_exporter_enabled: true # setup node_exporter on instance | ||
node_exporter_port: 9100 # default port for node exporter | ||
|
||
# - pg/pgb exporter - # | ||
pg_exporter_config: pg_exporter-demo.yaml # default config files for pg_exporter | ||
pg_exporter_enabled: true # setup pg_exporter on instance | ||
pgbouncer_exporter_enabled: true # setup pgbouncer_exporter on instance | ||
pg_exporter_port: 9630 # default port for pg exporter | ||
pgbouncer_exporter_port: 9631 # default port for pgbouncer exporter | ||
|
||
# - postgres variables reference - # | ||
pg_port: 5432 | ||
pgbouncer_port: 6432 | ||
pg_default_database: postgres | ||
pg_monitor_username: dbuser_monitor | ||
pg_monitor_password: DBUser.Monitor | ||
pg_port: 5432 # postgres port (5432 by default) | ||
pgbouncer_port: 6432 # pgbouncer port (6432 by default) | ||
pg_localhost: /var/run/postgresql # localhost unix socket dir for connection | ||
pg_default_database: postgres # default database will be used as primary monitor target | ||
pg_monitor_username: dbuser_monitor # system monitor username, for postgres and pgbouncer | ||
pg_monitor_password: DBUser.Monitor # system monitor user's password | ||
service_registry: consul # none | consul | etcd | both | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.