Hi, If you look at f.ex https://git.fd.io/vpp/tree/src/plugins/nat/nat44-ed/nat44_ed_in2out.c#n1199 You will see that the counter dimensions are thread and interface.
Best regards, Ole > On 28 Sep 2021, at 11:11, Юрий Иванов <format_...@outlook.com> wrote: > > Hi, > Many metrics are self explanatory others have description prefix, but NAT > lacks of description. > I'm writing basic metrics collector plugin for vpp stats with one worker. > So, output shows two arrays for main and additional thread. > > Can somebody explain what's the meaning of array counters, I see four > elements but can't figure meaning of it. > Searching vpp source code doesn't help. > > sudo ./test1 | grep -P "^/nat44-ed" > /nat44-ed/total-sessions SimpleCounterVector > [[0] [1008461]] > /nat44-ed/max-cfg-sessions ScalarIndex > 4e+06 > /nat44-ed/in2out/fastpath/tcp SimpleCounterVector > [[0 0 0 0] [0 0 1200447134 0]] > /nat44-ed/out2in/fastpath/tcp SimpleCounterVector > [[0 0 0 0] [0 0 0 2723258271]] > /nat44-ed/in2out/slowpath/tcp SimpleCounterVector > [[0 0 0 0] [0 0 10205237 0]] > /nat44-ed/out2in/slowpath/tcp SimpleCounterVector > [[0 0 0 0] [0 0 0 0]] > .... > /nat44-ed/out2in/fastpath/drops SimpleCounterVector > [[0 0 0 0] [0 0 0 122206]] > /nat44-ed/in2out/slowpath/drops SimpleCounterVector > [[0 0 0 0] [0 0 4124577 0]] > /nat44-ed/out2in/slowpath/drops SimpleCounterVector > [[0 0 0 0] [0 0 0 18635192]] > /nat44-ed/hairpinning SimpleCounterVector > [[0 0 0 0] [0 0 0 0]] > >
signature.asc
Description: Message signed with OpenPGP
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#20215): https://lists.fd.io/g/vpp-dev/message/20215 Mute This Topic: https://lists.fd.io/mt/85920364/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-