feat: create exporters module (#364)
- upgrade node_exporter, bring managed under exporters module - upgrade postgres_exporter, bring managed under exporters module - add flag to cleanup previous iterations of exporters from prometheus module - fix issues with vmclusster: replication + dedup Reviewed-on: #364
This commit was merged in pull request #364.
This commit is contained in:
@@ -84,11 +84,11 @@ class profiles::sql::patroni (
|
||||
}
|
||||
|
||||
if $postgres_exporter_enabled {
|
||||
class { 'prometheus::postgres_exporter':
|
||||
postgres_user => $postgres_exporter_user,
|
||||
postgres_pass => $postgres_exporter_pass,
|
||||
data_source_uri => "${facts['networking']['ip']}:5432/postgres?sslmode=disable",
|
||||
export_scrape_job => true,
|
||||
class { 'exporters::postgres_exporter':
|
||||
db_user => $postgres_exporter_user,
|
||||
db_pass => $postgres_exporter_pass,
|
||||
cleanup_old_postgres_exporter => true,
|
||||
enable => true,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user