collectd Plugin Configuration
The following sections provide the default collectd plugin configuration.
Policy Plane (VTC) Plugin Configuration
-
CPU
LoadPlugin cpu <Plugin cpu> ReportByCpu true ReportByState true ValuesPercentage false ReportNumCpu false ReportGuestState false SubtractGuestState true </Plugin>
-
python LoadPlugin python <Plugin python> ModulePath "/opt/vts/lib/python/" LogTraces true Import "vtsCollectD.vts_collectd_plugin" </Plugin>
-
write_log LoadPlugin write_log <Plugin write_log> Format JSON </Plugin>
-
logfile LoadPlugin logfile <Plugin logfile> LogLevel info File "/opt/vts/log/collectd/metrics.log" Timestamp true PrintSeverity true </Plugin>
-
interface LoadPlugin interface <Plugin interface> Interface "eth0" Interface "eth1" Interface "lo" IgnoreSelected false ReportInactive true UniqueName false </Plugin>
-
disk LoadPlugin disk
-
memory LoadPlugin memory <Plugin memory> ValuesAbsolute true ValuesPercentage false </Plugin>
-
load LoadPlugin load <Plugin load> ReportRelative true </Plugin>
Data Plane (VTF)—Plugin Configs
-
python LoadPlugin python <Plugin python> ModulePath "/opt/cisco/vpe/collectd/" LogTraces true Interactive false Import "cisco-vpfa-collectd-plugin" </Plugin>
-
interface
LoadPlugin interface <Plugin interface> Interface "br-ctlplane" Interface "br-ex" Interface "lo" Interface "br-tenant" IgnoreSelected false ReportInactive true UniqueName false </Plugin>
-
disk LoadPlugin disk
-
load LoadPlugin load <Plugin load> ReportRelative true </Plugin>
-
memory LoadPlugin memory <Plugin memory> ValuesAbsolute true ValuesPercentage false </Plugin>
-
cpu LoadPlugin cpu <Plugin cpu> ReportByCpu true ReportByState true ValuesPercentage false ReportNumCpu false ReportGuestState false SubtractGuestState true </Plugin>
-
write_log LoadPlugin write_log <Plugin write_log> Format JSON </Plugin>
Write_Http Plugin Format
<LoadPlugin write_http>
FlushInterval 60
</LoadPlugin>
<Plugin write_http>
<Node "example">
URL "http://10.2.1.1:8100/configure/collectd"
Format "JSON"
BufferSize 10240
</Node>
</Plugin>