prometheus-arch-textcollector.service.j2 774 Bytes
Newer Older
1
2
[Unit]
Description=Prometheus Arch Exporter
3
4
Wants=network-online.target
After=network-online.target
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
30
31
32
33
34
35
36
37
38

[Service]
Type=oneshot
User=node_exporter
ExecStart=/usr/local/bin/arch-textcollector.sh {{ prometheus_textfile_dir }}

NoNewPrivileges=true
LockPersonality=true
CapabilityBoundingSet=
UMask=077

PrivateDevices=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
ReadWritePaths={{ prometheus_textfile_dir }}

MemoryDenyWriteExecute=true
RemoveIPC=true
RestrictRealtime=true
RestrictNamespaces=true
RestrictSUIDSGID=true

RestrictAddressFamilies=~AF_NETLINK
RestrictAddressFamilies=~AF_PACKET

ProtectHostname=true
ProtectControlGroups=true
ProtectKernelLogs=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectClock=true

SystemCallArchitectures=native