Repository navigation
feat: show dataplane CPU of the packet-processing cores - #38
Merged
Merged
Conversation
During a load test on a PA-5580 the API and SNMP dashboards both showed 45% dataplane CPU while the operator read about 75% on the cores. Each dataplane lists 128 cores in resource-monitor, but only the 80 pan task cores process packets; core 0 and cores 81-127 stay at exactly 0%, in both the average and the maximum of the minute. PAN-OS averages over all 128 cores, in the XML API and in SNMP hrProcessorLoad alike (measured: API and SNMP within 0.3 point), so the all-core figure understates the load of the cores that saturate. The collector now adds cpu_active_pct (mean of the cores with any load during the minute, by maximum when available) and active_cores to each dataplane's core=average point; an idle dataplane reports 0.0. The API dashboards show it as a DP CPU (active cores) tile next to DP CPU (avg) (the strip now has nine tiles), as a line in CPU MP / DP, and in the Load Test ramp and CPU vs Throughput scatter plot. The all-core value is unchanged and still matches SNMP. Replaying the PA-5580 captures gives 80 active cores per dataplane at 71-73% against 45% all-core. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
During a PA-5580 load test, the API and SNMP dashboards both showed 45 % dataplane CPU while the packet-processing cores were at about 72 %.
A probe on the firewall showed why. Each dataplane lists 128 cores in
resource-monitor, but only the 80 pan task cores (1–80) process packets. Core 0 and cores 81–127 stay at exactly 0 % in both the minute average and the minute maximum. PAN-OS averages over all 128 cores in the XML API and in SNMPhrProcessorLoadalike: the two were measured within 0.3 point of each other. The all-core figure is correct, but it hides how close the working cores are to saturation.Change
core=averagepoint getscpu_active_pct, the mean of the cores with any load during the minute (by maximum when available), andactive_cores. An idle dataplane reports0.0. These are new fields only; no existing field changes type.Verification
Operator impact
Rebuild the Telegraf image (
./generate.sh). The new tile and lines fill in from the first poll after the upgrade.🤖 Generated with Claude Code