diff --git a/roles/postgres-exporter/templates/postgres-exporter.container.j2 b/roles/postgres-exporter/templates/postgres-exporter.container.j2 index 0a0a681..d106bd9 100644 --- a/roles/postgres-exporter/templates/postgres-exporter.container.j2 +++ b/roles/postgres-exporter/templates/postgres-exporter.container.j2 @@ -6,7 +6,7 @@ After=postgresql.service [Container] Image=quay.io/prometheuscommunity/postgres-exporter:v0.15.0 -Environment=DATA_SOURCE_URI='postgres-exporter@:5432/template1?host=/run/postgresql' +Environment=DATA_SOURCE_URI='postgres-exporter@:5432/postgres?host=/run/postgresql' Mount=type=bind,source=/run/postgresql,target=/run/postgresql # container_t cannot access the PostgreSQL socket postgresql_var_run_t SecurityLabelDisable=true