summarylogtreecommitdiffstats
path: root/parca-agent.service
blob: 43a04439dd608b84ad9a95f10efe0ef1f285562c (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
30
31
32
[Unit]
Description=Parca agent service
Requires=network-online.target
After=network-online.target

[Service]
Type=simple
User=parca-agent
Group=parca-agent
Restart=on-failure
RestartSec=10
WorkingDirectory=/var/lib/parca-agent
ConfigurationDirectory=parca-agent
StateDirectory=parca-agent
EnvironmentFile=-/etc/conf.d/parca-agent
ExecStart=/usr/bin/parca-agent --config-path=/etc/parca-agent/parca-agent.yaml $PARCA_AGENT_ARGS
LimitNOFILE=65535
NoNewPrivileges=true
ProtectHostname=true
ProtectKernelModules=true
# /proc/kallsyms is needed
ProtectKernelTunables=no
LockPersonality=true
RestrictRealtime=yes
MemoryDenyWriteExecute=yes
# For eBPF, CAP_DAC_READ_SEARCH for reading sysfs files owned by root
LimitMEMLOCK=infinity
CapabilityBoundingSet=CAP_SYS_ADMIN CAP_BPF CAP_PERFMON CAP_SYSLOG CAP_DAC_READ_SEARCH CAP_SYS_PTRACE
AmbientCapabilities=CAP_SYS_ADMIN CAP_BPF CAP_PERFMON CAP_SYSLOG CAP_DAC_READ_SEARCH CAP_SYS_PTRACE

[Install]
WantedBy=multi-user.target