Hi Sergey, > In a nutshell - yes, gauges are something I am also currently using to track > the number of entries in a bihash table(for example), however gauge update > will be done each time when the stats segment performs processing. Idea was > to track value more rapidly w/o increasing stats update interval. I thought > it worth to have it in upstream code.
There are two types of gauges. The one where you register with the stats segment, where the stats process periodically calls the registered function, inquiring the state of the gauge. The other where the client code itself manipulates the gauge directly, just like it does for other counters. For the latter case, can you not use vlib_set_simple_counter() directly? Just wondering what a "decrementing" counter (or gauge) would mean?? Best regards, Ole
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#17401): https://lists.fd.io/g/vpp-dev/message/17401 Mute This Topic: https://lists.fd.io/mt/76861769/21656 Group Owner: [email protected] Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
