summarylogtreecommitdiffstats
path: root/prometheus-postgresql-exporter.service
blob: 9c045e1f4d2611d7d1f3afa41cd2debce7bf2ad8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
[Unit]
Description=Prometheus exporter for PostgreSQL
After=network.target

[Service]
EnvironmentFile=-/etc/conf.d/prometheus-postgresql-exporter
ExecStart=/usr/bin/prometheus_postgresql_exporter $POSTGRES_EXPORTER_ARGS
Restart=on-failure

DynamicUser=true
ProtectKernelModules=true
ProtectKernelTunables=true
LockPersonality=true
ProtectHostname=true
ProtectHome=true
ProtectClock=true
ProtectControlGroups=true
ProtectKernelLogs=true
PrivateDevices=true
PrivateUsers=true
RestrictRealtime=true
CapabilityBoundingSet=
MemoryDenyWriteExecute=true

[Install]
WantedBy=multi-user.target