Update to 2021-12-01 19:13

This commit is contained in:
Daniel Berteaud
2021-12-01 19:13:34 +01:00
commit 4c4556c660
2153 changed files with 60999 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
DATA_SOURCE_URI={{ pg_exporter_data_source_uri }}
{% if pg_exporter_data_source_user is defined and pg_exporter_data_source_pass is defined %}
DATA_SOURCE_USER={{ pg_exporter_data_source_user }}
DATA_SOURCE_PASS={{ pg_exporter_data_source_pass }}
{% endif %}
PG_EXPORTER_WEB_LISTEN_ADDRESS=:{{ pg_exporter_port }}
PG_EXPORTER_AUTO_DISCOVER_DATABASES=true
PG_EXPORTER_EXCLUDE_DATABASES={{ pg_exporter_exclude_databases | join(',') }}

View File

@@ -0,0 +1,24 @@
[Unit]
Description=Synapse Matrix homeserver
[Service]
Type=simple
User={{ pg_exporter_user }}
Group={{ pg_exporter_user }}
EnvironmentFile={{ pg_exporter_root_dir }}/etc/postgres-exporter.conf
ExecStart={{ pg_exporter_root_dir }}/app/postgres_exporter
PrivateTmp=yes
PrivateDevices=yes
ProtectSystem=full
ProtectHome=yes
NoNewPrivileges=yes
MemoryLimit=512M
SyslogIdentifier=postgres-exporter
Restart=on-failure
StartLimitInterval=0
RestartSec=30
[Install]
WantedBy=multi-user.target