install pmu tools collectd plugin
[yardstick.git] / yardstick / network_services / nfvi / collectd.conf
1 # Config file for collectd(1).
2 #
3 # Some plugins need additional configuration and are disabled by default.
4 # Please read collectd.conf(5) for details.
5 #
6 # You should also read /usr/share/doc/collectd-core/README.Debian.plugins
7 # before enabling any more plugins.
8
9 ##############################################################################
10 # Global                                                                     #
11 #----------------------------------------------------------------------------#
12 # Global settings for the daemon.                                            #
13 ##############################################################################
14
15 Hostname "nsb_stats"
16 FQDNLookup true
17
18 Interval {{ interval }}
19
20 ##############################################################################
21 # LoadPlugin section                                                         #
22 #----------------------------------------------------------------------------#
23 # Specify what features to activate.                                         #
24 ##############################################################################
25
26 #LoadPlugin syslog
27 {% for plugin in loadplugins %}
28 LoadPlugin {{ plugin }}
29 {% endfor %}
30
31 ##############################################################################
32 # Plugin configuration                                                       #
33 #----------------------------------------------------------------------------#
34 # In this section configuration stubs for each plugin are provided. A desc-  #
35 # ription of those options is available in the collectd.conf(5) manual page. #
36 ##############################################################################
37
38 #<Plugin syslog>
39 #        LogLevel debug
40 #</Plugin>
41
42 <Plugin amqp>
43     <Publish "name">
44         Host "0.0.0.0"
45         Port "5672"
46         VHost "/"
47         User "admin"
48         Password "admin"
49         Exchange "amq.fanout"
50         RoutingKey "collectd"
51         Persistent false
52         StoreRates false
53         ConnectionRetryDelay 0
54     </Publish>
55 </Plugin>
56
57 <Plugin cpu>
58     ReportByCpu true
59     ReportByState true
60     ValuesPercentage true
61 </Plugin>
62
63 <Plugin memory>
64     ValuesAbsolute true
65     ValuesPercentage false
66 </Plugin>
67
68
69 <Plugin hugepages>
70     ReportPerNodeHP  true
71     ReportRootHP     true
72     ValuesPages      true
73     ValuesBytes      false
74     ValuesPercentage false
75 </Plugin>
76
77
78 {% if "intel_rdt" in plugins %}
79 <Plugin "intel_rdt">
80   Cores ""
81 </Plugin>
82 {% endif %}
83
84 {% if "intel_pmu" in plugins %}
85 <Plugin intel_pmu>
86    ReportHardwareCacheEvents true
87    ReportKernelPMUEvents true
88    ReportSoftwareEvents true
89    EventList "/opt/nsb_bin/pmu_event.json"
90    HardwareEvents "L2_RQSTS.CODE_RD_HIT,L2_RQSTS.CODE_RD_MISS" "L2_RQSTS.ALL_CODE_RD"
91 </Plugin>
92 {% endif %}
93
94 {% if "dpdkstat" in plugins %}
95 <Plugin "dpdkstat">
96   <EAL>
97     Coremask "0x1"
98     MemoryChannels "4"
99     ProcessType "secondary"
100     FilePrefix "rte"
101   </EAL>
102   SharedMemObj "dpdk_collectd_stats_0"
103   EnabledPortMask 0xffff
104 {% for port_name in port_names %}
105   PortName {{ port_name }}
106 {% endfor %}
107 </Plugin>
108 {% endif %}
109
110 {% if "virt" in plugins %}
111 <Plugin "virt">
112 # monitor all domains
113 </Plugin>
114 {% endif %}
115
116 {% if "ovs_stats" in plugins %}
117 <Plugin "ovs_stats">
118   Port "6640"
119   Address "127.0.0.1"
120   Socket "/usr/local/var/run/openvswitch/db.sock"
121 # don't specify bridges, monitor all bridges
122 </Plugin>
123 {% endif %}
124