Hi Stanislav,
> I want to get counters for interfaces through the VAPI. Is it possible? I
> can't find any methods to do it.
>
> I am using C++ VAPI headers, but any references with C would be helpful too.
>
> Or I would be glad if anyone would tell me the proper way to collect counters
> for all interfaces in VPP.
VPP telemetry is exposed directly through a shared memory segment.
(Not using the binary VPP API).
You can access this directly via src/vpp-api/client/stat_client.h
or use the C++ wrapper in extras/vom/vom/stat_reader.hpp
Best regards,
Ole
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#17246): https://lists.fd.io/g/vpp-dev/message/17246
Mute This Topic: https://lists.fd.io/mt/76205779/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-