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
9 Environment=HOSTNAME=%H
10 ExecStart=/usr/bin/grafana-agent --config.file /etc/grafana-agent.yaml
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.
18 MemoryDenyWriteExecute=true
23 ReadWritePaths=/var/lib/grafana-agent
26 ProtectKernelTunables=true
27 ProtectKernelModules=true
28 ProtectControlGroups=true
31 WantedBy=multi-user.target