目录


文章目录

  • 目录
  • Telemetry Plugin
  • Telemetry Config
  • Telemetry REST API
  • Telemetry metrics
  • VPP runtime
  • VPP buffers
  • VPP Memory
  • VPP node counters
  • VPP interfaces


Telemetry Plugin

Telemetry Plugin 用于把从 VPP Data Plane 收集到统计数据 Exports 至 Prometheus Server。

  • 集成接口:
curl -X GET http://localhost:9191/metrics
  • metrics:
    FD.io/VPP — VPP Agent — Telemetry Plugin_unix

Telemetry Config

  • 指定 Telemetry Plugin Conf file 的 vpp-agent CLI 选项。
--telemetry_config=
  • Telemetry Plugin Conf File Sample:
# Interval of data read procedure from the vpp. Default value is 30 seconds.
polling-interval: 30s

# If set to true, telemetry plugin is disabled.
disabled: false

# If set to true, prometheus in telemetry plugin is disabled.
prometheus-disabled: false

# Skip collecting some of the metrics.
# runtime, memory, buffers, nodes, interfaces
#skipped: [nodes]

Telemetry REST API

Telemetry 是 SB Dumps 的一部分,用作监控相关。

  • GET /dump/vpp/telemetry
  • GET /dump/vpp/telemetry/memory
  • GET /dump/vpp/telemetry/runtime
  • GET /dump/vpp/telemetry/nodecount

Telemetry metrics

VPP runtime

  • VPP CLI
$ docker exec -it vpp-agent vppctl -s localhost:5002 show runtime

Time 5915.5, 10 sec internal node vector rate 0.00 loops/sec 615808.69
vector rates in 0.0000e0, out 0.0000e0, drop 0.0000e0, punt 0.0000e0
Name State Calls Vectors Suspends Clocks Vectors/Call
acl-plugin-fa-cleaner-process event wait 0 0 1 9.51e3 0.00
api-rx-from-ring any wait 0 0 9674 5.21e5 0.00
avf-process event wait 0 0 1 1.03e4 0.00
bfd-process event wait 0 0 1 7.13e3 0.00
bond-process event wait 0 0 1 6.99e3 0.00
cnat-scanner-process any wait 0 0 5916 8.19e3 0.00
dhcp-client-process any wait 0 0 6 1.56e4 0.00
dhcp6-client-cp-process any wait 0 0 1 6.38e3 0.00
dhcp6-pd-client-cp-process any wait 0 0 1 5.26e3 0.00
dhcp6-pd-reply-publisher-proce event wait 0 0 1 6.20e3 0.00
dhcp6-reply-publisher-process event wait 0 0 1 5.61e3 0.00
fib-walk any wait 0 0 2958 8.92e3 0.00
flow-report-process any wait 0 0 1 5.89e3 0.00
flowprobe-timer-process any wait 0 0 1 1.38e4 0.00
gbp-scanner event wait 0 0 1 1.29e4 0.00
igmp-timer-process event wait 0 0 1 1.01e4 0.00
ikev2-manager-process any wait 0 0 2958 6.82e3 0.00
ioam-export-process any wait 0 0 1 5.89e3 0.00
ip-neighbor-event event wait 0 0 1 6.58e3 0.00
ip4-full-reassembly-expire-wal any wait 0 0 592 5.61e3 0.00
ip4-neighbor-age-process event wait 0 0 1 5.06e3 0.00
ip4-sv-reassembly-expire-walk any wait 0 0 592 3.67e3 0.00
ip6-full-reassembly-expire-wal any wait 0 0 592 4.31e3 0.00
ip6-mld-process any wait 0 0 5916 3.70e3 0.00
ip6-neighbor-age-process event wait 0 0 1 7.98e3 0.00
ip6-ra-process any wait 0 0 5916 3.78e3 0.00
ip6-rs-process any wait 0 0 1 6.31e3 0.00
ip6-sv-reassembly-expire-walk any wait 0 0 592 5.92e3 0.00
l2-arp-term-publisher event wait 0 0 1 7.32e3 0.00
l2fib-mac-age-scanner-process event wait 0 0 1 5.61e3 0.00
lldp-process event wait 0 0 1 7.79e4 0.00
memif-process event wait 0 0 1 1.43e4 0.00
nat-ha-process event wait 0 0 1 1.04e4 0.00
nat64-expire-walk event wait 0 0 1 6.78e3 0.00
nsh-md2-ioam-export-process any wait 0 0 1 1.25e4 0.00
perfmon-periodic-process event wait 0 0 1 1.19e4 0.00
rd-cp-process any wait 0 0 1 1.39e4 0.00
send-dhcp6-client-message-proc any wait 0 0 1 6.13e3 0.00
send-dhcp6-pd-client-message-p any wait 0 0 1 9.79e3 0.00
startup-config-process done 1 0 1 1.59e4 0.00
statseg-collector-process time wait 0 0 592 2.24e5 0.00
udp-ping-process any wait 0 0 1 1.19e4 0.00
unix-cli-127.0.0.1:42862 active 3 0 45 3.79e9 0.00
unix-cli-new-session any wait 0 0 11 3.61e8 0.00
unix-epoll-input polling 497866410 0 0 2.70e4 0.00
vhost-user-process any wait 0 0 1 6.14e3 0.00
vhost-user-send-interrupt-proc any wait 0 0 1 6.22e3 0.00
vpe-link-state-process event wait 0 0 1 4.98e3 0.00
vrrp-periodic-process event wait 0 0 1 1.08e4 0.00
vxlan-gpe-ioam-export-process any wait 0 0 1 6.28e3 0.00
wg-timer-manager any wait 0 0 590328 6.78e2 0.00

VPP buffers

  • VPP CLI
$ docker exec -it vpp-agent vppctl -s localhost:5002 show buffers
Pool Name Index NUMA Size Data Size Total Avail Cached Used
default-numa-0 0 0 2304 2048 16815 16814 0 1

VPP Memory

  • VPP CLI
$ docker exec -it vpp-agent vppctl -s localhost:5002 show memory

Thread 0 vpp_main
20071 objects, 14276k of 14771k used, 21k free, 12k reclaimed, 315k overhead, 1048572k capacity

VPP node counters

  • VPP CLI
$ docker exec -it vpp-agent vppctl -s localhost:5002 show node counters

Count Node Reason
120406 ipsec-output-ip4 IPSec policy protect
120406 esp-encrypt ESP pkts received
123692 ipsec-input-ip4 IPSEC pkts received
3286 ip4-icmp-input unknown type
120406 ip4-icmp-input echo replies sent
14 ethernet-input l3 mac mismatch
102 arp-input ARP replies sent

VPP interfaces

  • VPP CLI
$ docker exec -it vpp-agent vppctl -s localhost:5002 show interface
Name Idx State MTU (L3/IP4/IP6/MPLS) Counter Count
local0 0 down 0/0/0/0