TWSD-825 Get CPU utilization metrics data from APV CLI

Review Request #927 — Created June 19, 2025 and submitted — Latest diff uploaded

weikai
APV10
rel_apv_10_7, rel_apv_10_7_3
TWSD-825
kevin.poh, timlai, timsu

Issue
CPU usage displayed differs from the APV CLI, or vAPV shows different usage on the AVX CLI.

Root Cause
- CPU usage fluctuates constantly
- Different sampling methods are used

Solution
Use Prometheus Metrics to fetch CPU usage directly via APV CLI.

APV
prometheus on
prometheus token new

Get Prometheus Metrics from other machine
curl -H "Authorization: Bearer <token>" http://<IP>:9100/metrics

Compare with APV CLI "show debug usage cpu"

    Loading...