statsclient: added symlinks 95/32295/7
authorVladimir Lavor <vlavor@cisco.com>
Thu, 13 May 2021 09:15:48 +0000 (11:15 +0200)
committerVladimir Lavor <vlavor@cisco.com>
Wed, 26 May 2021 07:53:08 +0000 (09:53 +0200)
commitba6e92d715c59dc71c4e18e66b262d07578d524b
treecfea5f53750b52d3eccf7bdb1947936dd7e31ee1
parentc380ee6064379258768fdfe4e9d4ad9138980ec0
statsclient: added symlinks

Symlink support based on https://gerrit.fd.io/r/c/vpp/+/31636

Added new stat types `CounterStat` and `CombinedCounterStat` which
represent simple/combined value of a single item (interface, node)
as a array of values by workers.

Example:
/if/names                      NameVector [local0 tap0 tap1]
/if/ip6               SimpleCounterVector [[0 9 0] [0 25 3] [0 0 60] [0 0 0]]
/interfaces/tap0/ip6  SimpleCounterVector [[9] [25] [0] [0]]
/interfaces/tap1/ip6  SimpleCounterVector [[0] [3] [60] [0]]

Field `Symlink` added to StatEntry to mark symlink stats.

For stats v2 only

Change-Id: Iadc825f3c42b05bfc9a91462dba8a0b0068c7cd6
Signed-off-by: Vladimir Lavor <vlavor@cisco.com>
adapter/stats_api.go
adapter/statsclient/stat_segment_api.go
adapter/statsclient/statsclient.go
adapter/statsclient/statseg_v1.go
adapter/statsclient/statseg_v2.go
adapter/vppapiclient/stat_client.go