[Unit]
Description=Prometheus exporter for pgBackRest metrics
Documentation=https://github.com/woblerr/pgbackrest_exporter
After=network.target

[Service]
EnvironmentFile=-/etc/default/pgbackrest_exporter
User={{ pg_dbsu|default('postgres') }}
ExecStart=/usr/bin/pgbackrest_exporter $EXPORTER_OPTS
Restart=on-failure
CPUQuota=10%

[Install]
WantedBy=multi-user.target