aboutsummaryrefslogtreecommitdiffstats
path: root/yardstick/network_services/nfvi/collectd.conf
blob: 22bd5d49de8c78f3a40dd892efea46552aa8089f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
# Config file for collectd(1).
#
# Some plugins need additional configuration and are disabled by default.
# Please read collectd.conf(5) for details.
#
# You should also read /usr/share/doc/collectd-core/README.Debian.plugins
# before enabling any more plugins.

##############################################################################
# Global                                                                     #
#----------------------------------------------------------------------------#
# Global settings for the daemon.                                            #
##############################################################################

Hostname "nsb_stats"
FQDNLookup true

Interval {{ interval }}

##############################################################################
# LoadPlugin section                                                         #
#----------------------------------------------------------------------------#
# Specify what features to activate.                                         #
##############################################################################

#LoadPlugin syslog
{% for plugin in loadplugins %}
LoadPlugin {{ plugin }}
{% endfor %}

##############################################################################
# Plugin configuration                                                       #
#----------------------------------------------------------------------------#
# In this section configuration stubs for each plugin are provided. A desc-  #
# ription of those options is available in the collectd.conf(5) manual page. #
##############################################################################

#<Plugin syslog>
#        LogLevel debug
#</Plugin>

<Plugin amqp>
    <Publish "name">
        Host "0.0.0.0"
        Port "5672"
        VHost "/"
        User "admin"
        Password "admin"
        Exchange "amq.fanout"
        RoutingKey "collectd"
        Persistent false
        StoreRates false
        ConnectionRetryDelay 0
    </Publish>
</Plugin>

<Plugin cpu>
    ReportByCpu true
    ReportByState true
    ValuesPercentage true
</Plugin>

<Plugin memory>
    ValuesAbsolute true
    ValuesPercentage false
</Plugin>


<Plugin hugepages>
    ReportPerNodeHP  true
    ReportRootHP     true
    ValuesPages      true
    ValuesBytes      false
    ValuesPercentage false
</Plugin>


{% if "intel_rdt" in plugins %}
<Plugin "intel_rdt">
  Cores ""
</Plugin>
{% endif %}

{% if "intel_pmu" in plugins %}
<Plugin intel_pmu>
   ReportHardwareCacheEvents true
   ReportKernelPMUEvents true
   ReportSoftwareEvents true
   EventList "/root/.cache/pmu-events/GenuineIntel-6-2D-core.json"
   HardwareEvents "L2_RQSTS.CODE_RD_HIT,L2_RQSTS.CODE_RD_MISS" "L2_RQSTS.ALL_CODE_RD"
</Plugin>
{% endif %}

{% if "dpdkstat" in plugins %}
<Plugin "dpdkstat">
  <EAL>
    Coremask "0x1"
    MemoryChannels "4"
    ProcessType "secondary"
    FilePrefix "rte"
  </EAL>
  SharedMemObj "dpdk_collectd_stats_0"
  EnabledPortMask 0xffff
{% for port_name in port_names %}
  PortName {{ port_name }}
{% endfor %}
</Plugin>
{% endif %}

{% if "virt" in plugins %}
<Plugin "virt">
# monitor all domains
</Plugin>
{% endif %}

{% if "ovs_stats" in plugins %}
<Plugin "ovs_stats">
  Port "6640"
  Address "127.0.0.1"
  Socket "/usr/local/var/run/openvswitch/db.sock"
# don't specify bridges, monitor all bridges
</Plugin>
{% endif %}