archrelease: copy trunk to community-any
[ArchLinux/community.git] / grafana-agent / trunk / grafana-agent.service
blob48de5c3e70261dfc2289d2d7bdb6c28c156b8ce1
1 [Unit]
2 Description=Grafana Agent monitoring system and forwarder
3 Documentation=https://grafana.com/docs/agent/
4 Wants=network-online.target
5 After=network-online.target
7 [Service]
8 Restart=always
9 Environment=HOSTNAME=%H
10 ExecStart=/usr/bin/grafana-agent --config.file /etc/grafana-agent.yaml
11 User=grafana-agent
12 # If running the Agent in scraping service mode, you will want to override this value with
13 # something larger to allow the Agent to gracefully leave the cluster. 4800s is recommend.
14 TimeoutStopSec=20s
15 SendSIGKILL=no
17 NoNewPrivileges=true
18 MemoryDenyWriteExecute=true
19 RestrictRealtime=true
21 ProtectHome=true
22 ProtectSystem=strict
23 ReadWritePaths=/var/lib/grafana-agent
24 PrivateTmp=true
26 ProtectKernelTunables=true
27 ProtectKernelModules=true
28 ProtectControlGroups=true
30 [Install]
31 WantedBy=multi-user.target