Christian,

>> For exporting data out of the stats segment, I believe there is already 
>> quite a few solutions.
>> There's the (naive) prometheus example in the repo, vpp_get_stats, there is 
>> a Telegraf plugin, a simple gNMI/gRPC plugin.
> 
> Right I've used vpp_get_stats and may run that with ssh and awk. I guess it 
> just seems odd on first encountering this that the CLI provided the data, but 
> the binary API didn't. I suppose the view is that exposing the stats segment 
> in shared memory *is* the binary API. :)

What certainly would make sense to do, is to put a wrapper on top of 
vpp_stats.py that gives you a higher level API of accessing the stats.
E.g. a get_interface_counters(). The stat segment also contains the name to 
interface index mapping (/if/names).
Want to have a go?

I am also exploring putting much more information into the stat segment, 
essentially making it into an operational data store (RFC8342). Don't hold your 
breath. But any help appreciated.

Cheers,
Ole
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#15107): https://lists.fd.io/g/vpp-dev/message/15107
Mute This Topic: https://lists.fd.io/mt/69538850/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-
  • ... Christian Hopps
    • ... Ole Troan
      • ... Christian Hopps
      • ... Christian Hopps
        • ... Ole Troan
          • ... Christian Hopps
            • ... Ole Troan
              • ... Christian Hopps
                • ... Vratko Polak -X (vrpolak - PANTHEON TECHNOLOGIES at Cisco) via Lists.Fd.Io
                • ... Paul Vinciguerra
                • ... Ole Troan
                • ... Paul Vinciguerra
                • ... Ole Troan
                • ... Christian Hopps
                • ... Paul Vinciguerra
                • ... Vratko Polak -X (vrpolak - PANTHEON TECHNOLOGIES at Cisco) via Lists.Fd.Io
                • ... Ole Troan

Reply via email to