summarylogtreecommitdiffstats
path: root/prometheus-php-fpm-exporter.service
blob: 209e5ce3ff167b77f766e0dec9e3401144e1ae65 (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
27
28
29
[Unit]
Description=Prometheus PHP-FPM exporter
After=network.target

[Service]
User=http
Group=http
Environment=PHP_FPM_SCRAPE_URI=unix:///run/php-fpm/php-fpm.sock;/status
ExecStart=/usr/bin/prometheus-php-fpm-exporter server
Restart=on-failure

NoNewPrivileges=true
RestrictSUIDSGID=true
ProtectSystem=strict
ProtectKernelModules=true
ProtectKernelTunables=true
PrivateTmp=true
LockPersonality=true
ProtectHostname=true
ProtectHome=true
ProtectControlGroups=true
ProtectKernelLogs=true
PrivateDevices=true
RestrictRealtime=true
CapabilityBoundingSet=
MemoryDenyWriteExecute=true

[Install]
WantedBy=multi-user.target