stats: expose symlink to stats client 98/38298/2
authorOle Troan <ot@cisco.com>
Fri, 17 Feb 2023 13:23:48 +0000 (14:23 +0100)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Thu, 2 Mar 2023 08:00:50 +0000 (08:00 +0000)
commit04853c67e4f06b8b33005b7c2ccaca5a2d015760
tree2db4dc0d4ddef110bf5882a37a28f9fa97cf59df
parentd346f393fd26aa08882e6f84e2b9a4b888430a30
stats: expose symlink to stats client

For e.g. prometheus export it makes more sense to use the same metric name,
and expose the various symlinks as labels.

The VPP symlink metric:
/interfaces/local0/rx_unicast

that points to
/if/rx_unicast

Becomes in Prometheus:
interfaces_rx_unicast_bytes{index="0",label="local0"} 0

Type: improvement
Signed-off-by: Ole Troan <ot@cisco.com>
Change-Id: Ide0ab4fda4b3eb7ba7ddfc44680121c53f5267f6
src/vpp-api/client/stat_client.c
src/vpp-api/client/stat_client.h