Infrastructure Metrics Collector Skill for Sampling Gaps
Set units and sample intervals for local infrastructure metrics and verify that missing observations remain visible.
中文Install in Claude Code
Use your own test host and collector. The example uses 30-second samples and synthetic CPU and disk values.
- Get the complete `plugins/performance/infrastructure-metrics-collector/skills/collecting-infrastructure-metrics` directory from the pinned GitHub commit.
- Copy it into the target project's `.claude/skills/`. Check `.claude/skills/collecting-infrastructure-metrics/SKILL.md`, start Claude Code at the project root, and call `/collecting-infrastructure-metrics`.
Example task
Set free disk space to 40 GiB, missing, and 38 GiB at successive sample points. Draw the missing point as a gap and plot collected CPU samples separately.What to check
The report records two disk observations and one gap. Resource changes are distinguishable from missing collection.
Original SKILL.md on GitHub · Updated
Frequently asked question
Can a missing observation be filled with zero?
Keep an explicit gap and inspect collector logs. Zero would indicate actual resource exhaustion.