intel_pmu: Implement performance monitoring plugin
[collectd.git] / contrib / systemd.collectd.service
1 [Unit]
2 Description=Collectd statistics daemon
3 Documentation=man:collectd(1) man:collectd.conf(5)
4 After=local-fs.target network-online.target
5 Requires=local-fs.target network-online.target
6
7 [Service]
8 ExecStart=/usr/sbin/collectd
9 EnvironmentFile=-/etc/sysconfig/collectd
10 EnvironmentFile=-/etc/default/collectd
11 ProtectSystem=full
12 ProtectHome=true
13
14 # Some plugins require access to data located in a specified folder, to access
15 # this data you'll have to specify the path by using the Environment directive
16 # below.
17 #
18 # Here's a (incomplete) list of the plugins known environment requirements:
19 #   intel_pmu       XDG_CACHE_HOME
20 #
21 # Example, if you use the intel_pmu plugin and cache is located in the /opt
22 # directory:
23 # Environment=XDG_CACHE_HOME=/opt
24 #
25 # By default, the HOME directory is chosen:
26 Environment=
27
28 # A few plugins won't work without some privileges, which you'll have to
29 # specify using the CapabilityBoundingSet directive below.
30 #
31 # Here's a (incomplete) list of the plugins known capability requirements:
32 #   ceph            CAP_DAC_OVERRIDE
33 #   dns             CAP_NET_RAW
34 #   exec            CAP_SETUID CAP_SETGID
35 #   intel_rdt       CAP_SYS_RAWIO
36 #   intel_pmu       CAP_SYS_ADMIN
37 #   iptables        CAP_NET_ADMIN
38 #   ping            CAP_NET_RAW
39 #   smart           CAP_SYS_RAWIO
40 #   turbostat       CAP_SYS_RAWIO
41 #
42 # Example, if you use the iptables plugin alongside the dns or ping plugin:
43 #CapabilityBoundingSet=CAP_NET_RAW CAP_NET_ADMIN
44 #
45 # By default, drop all capabilities:
46 CapabilityBoundingSet=
47
48 NoNewPrivileges=true
49
50 # Tell systemd it will receive a notification from collectd over its control
51 # socket once the daemon is ready. See systemd.service(5) for more details.
52 Type=notify
53
54 # Restart the collectd daemon when it fails.
55 Restart=on-failure
56
57 [Install]
58 WantedBy=multi-user.target