[prev in list] [next in list] [prev in thread] [next in thread]
List: collectd
Subject: [collectd] Warning-Error of ovs_stats plugin
From: Georgia Panoutsakopoulou <gpanoutsak () gmail ! com>
Date: 2019-11-11 14:16:14
Message-ID: CAG2+9UHoMJOJsHSDOySJK3oaABYLoAg9Nqo7N8qh3qoQL_T_aQ () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Hello,
We are trying to use ovs_stats collectd's plugin but it comes with an
error-warning and the metrics that are exposed are not stable.
We use openvswitch 2.11.0, dpdk 18.11.1 and collectd 5.9.2 (package
libyajl-dev is installed) with configuration:
<LoadPlugin ovs_stats>
Interval 1
</LoadPlugin>
<Plugin ovs_stats>
Port "6640"
Address "127.0.0.1"
Socket "/usr/local/var/run/openvswitch/db.sock"
Bridges "fastbr0"
</Plugin>
When running collectd we get the warning:
plugin_dispatch_values: ds->type = if_errors: (ds->ds_num = 2) !=
(vl->values_len = 1)
When we tried it in debug mode the warning became an assertation error:
assert(0 == strcmp(ds->type, vl->type)) and collectd exited.
The check that fails can be found in this link:
https://github.com/collectd/collectd/blob/master/src/daemon/plugin.c#L2121
Is there anything that we may be missing and result in this warning?
In addition, some of the metrics (e.g. ovs_stats-fastbr0.dev1/if_packets)
are not exposed constantly and sometimes, when they are exposed, their
values are NaN. Is this expected to happen or does it come as a result of
the above warning?
Note that this warning occurs when using collectd 5.9.2 and not with
collectd 5.8.1.
Thanks in advance for any help,
Georgia Panoutsakopoulou
[Attachment #5 (text/html)]
<div dir="ltr"><p class="MsoNormal" style="margin:0cm 0cm \
0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span \
lang="EN-US">Hello,</span></p>
<p class="MsoNormal" style="margin:0cm 0cm \
0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US">We are \
trying to use ovs_stats collectd's plugin but it comes with an error-warning and the \
metrics that are exposed are not stable.</span></p>
<p class="MsoNormal" style="margin:0cm 0cm \
0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span \
lang="EN-US"><br></span></p><p class="MsoNormal" style="margin:0cm 0cm \
0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US">We use \
openvswitch 2.11.0, dpdk 18.11.1 and collectd 5.9.2 (package libyajl-dev is \
installed) with configuration:</span></p>
<p class="MsoNormal" style="margin:0cm 0cm \
0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US"> \
</span></p>
<p class="MsoNormal" style="margin:0cm 0cm \
0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span \
lang="EN-US"><LoadPlugin ovs_stats></span></p>
<p class="MsoNormal" style="margin:0cm 0cm \
0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US"> \
Interval 1</span></p>
<p class="MsoNormal" style="margin:0cm 0cm \
0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span \
lang="EN-US"></LoadPlugin></span></p>
<p class="MsoNormal" style="margin:0cm 0cm \
0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US"> \
</span></p>
<p class="MsoNormal" style="margin:0cm 0cm \
0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US"><Plugin \
ovs_stats></span></p>
<p class="MsoNormal" style="margin:0cm 0cm \
0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US"> Port \
"6640"</span></p>
<p class="MsoNormal" style="margin:0cm 0cm \
0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US"> Address \
"127.0.0.1"</span></p>
<p class="MsoNormal" style="margin:0cm 0cm \
0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US"> Socket \
"/usr/local/var/run/openvswitch/db.sock"</span></p>
<p class="MsoNormal" style="margin:0cm 0cm \
0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US"> Bridges \
"fastbr0"</span></p>
<p class="MsoNormal" style="margin:0cm 0cm \
0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span \
lang="EN-US"></Plugin></span></p>
<p class="MsoNormal" style="margin:0cm 0cm \
0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US"> \
</span></p>
<p class="MsoNormal" style="margin:0cm 0cm \
0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US">When \
running collectd we get the warning:</span></p>
<p class="MsoNormal" style="margin:0cm 0cm \
0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span \
lang="EN-US">plugin_dispatch_values: ds->type = if_errors: (ds->ds_num = 2) != \
(vl->values_len = 1)</span></p>
<p class="MsoNormal" style="margin:0cm 0cm \
0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US"> \
</span></p>
<p class="MsoNormal" style="margin:0cm 0cm \
0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US">When we \
tried it in debug mode the warning became an assertation error:</span></p>
<p class="MsoNormal" style="margin:0cm 0cm \
0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US"> assert(0 \
== strcmp(ds->type, vl->type)) and collectd exited.</span></p>
<p class="MsoNormal" style="margin:0cm 0cm \
0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US"> \
</span></p>
<p class="MsoNormal" style="margin:0cm 0cm \
0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US">The check \
that fails can be found in this link: <a \
href="https://github.com/collectd/collectd/blob/master/src/daemon/plugin.c#L2121" \
style="color:rgb(5,99,193)">https://github.com/collectd/collectd/blob/master/src/daemon/plugin.c#L2121</a></span></p>
<p class="MsoNormal" style="margin:0cm 0cm \
0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US" \
style="background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">Is \
there anything that we may be missing and result in this warning? </span><span \
lang="EN-US"></span></p>
<p class="MsoNormal" style="margin:0cm 0cm \
0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US"> \
</span></p>
<p class="MsoNormal" style="margin:0cm 0cm \
0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US">In \
addition, some of the metrics (e.g. ovs_stats-fastbr0.dev1/if_packets) are not \
exposed constantly and sometimes, when they are exposed, their values are NaN. Is \
this expected to happen or does it come as a result of the above warning?</span></p>
<p class="MsoNormal" style="margin:0cm 0cm \
0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US"> \
</span></p>
<p class="MsoNormal" style="margin:0cm 0cm \
0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US">Note that \
this warning occurs when using collectd 5.9.2 and not with collectd 5.8.1.</span></p>
<p class="MsoNormal" style="margin:0cm 0cm \
0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US"> \
</span></p>
<p class="MsoNormal" style="margin:0cm 0cm \
0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US">Thanks in \
advance for any help,</span></p>
<p class="MsoNormal" style="margin:0cm 0cm \
0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US"> \
</span></p>
<p class="MsoNormal" style="margin:0cm 0cm \
0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US">Georgia \
Panoutsakopoulou</span></p></div>
[Attachment #6 (text/plain)]
_______________________________________________
collectd mailing list
collectd@verplant.org
https://mailman.verplant.org/listinfo/collectd
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic