collectd: set intel_pmu events path and OVS socket path
[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 if plugin != "ovs_stats" %}
28 LoadPlugin {{ plugin }}
29 {% endfor %}
30
31 {% if "ovs_stats" in plugins %}
32 <LoadPlugin ovs_stats>
33   Interval 1
34 </LoadPlugin>
35 {% endif %}
36
37
38 ##############################################################################
39 # Plugin configuration                                                       #
40 #----------------------------------------------------------------------------#
41 # In this section configuration stubs for each plugin are provided. A desc-  #
42 # ription of those options is available in the collectd.conf(5) manual page. #
43 ##############################################################################
44
45 #<Plugin syslog>
46 #        LogLevel debug
47 #</Plugin>
48
49 <Plugin amqp>
50     <Publish "name">
51         Host "0.0.0.0"
52         Port "5672"
53         VHost "/"
54         User "admin"
55         Password "admin"
56         Exchange "amq.fanout"
57         RoutingKey "collectd"
58         Persistent false
59         StoreRates false
60         ConnectionRetryDelay 0
61     </Publish>
62 </Plugin>
63
64 <Plugin cpu>
65     ReportByCpu true
66     ReportByState true
67     ValuesPercentage true
68 </Plugin>
69
70 <Plugin memory>
71     ValuesAbsolute true
72     ValuesPercentage false
73 </Plugin>
74
75
76 <Plugin hugepages>
77     ReportPerNodeHP  true
78     ReportRootHP     true
79     ValuesPages      true
80     ValuesBytes      false
81     ValuesPercentage false
82 </Plugin>
83
84
85 {% if "intel_rdt" in plugins %}
86 <Plugin "intel_rdt">
87   Cores ""
88 </Plugin>
89 {% endif %}
90
91 {% if "intel_pmu" in plugins %}
92 <Plugin "intel_pmu">
93    ReportHardwareCacheEvents true
94    ReportKernelPMUEvents true
95    ReportSoftwareEvents true
96    EventList "{{ plugins['intel_pmu']['pmu_event_path'] }}"
97 </Plugin>
98 {% endif %}
99
100 {% if "dpdkstat" in plugins %}
101 <Plugin "dpdkstat">
102   <EAL>
103     Coremask "0x1"
104     MemoryChannels "4"
105     ProcessType "secondary"
106     FilePrefix "rte"
107   </EAL>
108   SharedMemObj "dpdk_collectd_stats_0"
109   EnabledPortMask 0xffff
110 {% for port_name in port_names %}
111   PortName {{ port_name }}
112 {% endfor %}
113 </Plugin>
114 {% endif %}
115
116 {% if "virt" in plugins %}
117 <Plugin "virt">
118 # monitor all domains
119   RefreshInterval 60
120   ExtraStats "cpu_util disk disk_err domain_state fs_info job_stats_background pcpu perf vcpupin"
121 </Plugin>
122 {% endif %}
123
124 {% if "ovs_stats" in plugins %}
125 <Plugin "ovs_stats">
126   Port "6640"
127   Address "127.0.0.1"
128   Socket "{{ plugins['ovs_stats']['ovs_socket_path'] }}"
129 # don't specify bridges, monitor all bridges
130 </Plugin>
131 {% endif %}
132