Commit graph

3 commits

Author SHA1 Message Date
Ben Kochie
bea801b627
Improve linting (#865)
* Update for Go 1.27.x.
* Enable modernize linter.
* Enable perfsprint linter.
* Enable gci formatter.
* Swap gofumpt for gofmt formatter.
* Apply linter fixes.

Signed-off-by: SuperQ <superq@gmail.com>
2026-10-17 12:19:29 +02:00
Ben Kochie
b18599bdba
Rename internal/util package (#864)
Rename the internal/util package to satisfy the linter.

Fixes: https://github.com/prometheus/prometheus/issues/17766

Signed-off-by: SuperQ <superq@gmail.com>
2026-08-28 09:19:08 +02:00
Rene Treffer
a87803ee31
Add resctrlfs package (#862)
Parse the monitoring data of the resctrl filesystem, the kernel
interface to Intel RDT, AMD PQoS and ARM MPAM. All vendors share the
same driver and file layout, so one parser serves all vendors.

MonData returns the per domain counters of the root control group
(llc_occupancy, mbm_total_bytes, mbm_local_bytes). A counter is nil
when the hardware lacks the feature or reports "Unavailable".
L3MonInfo exposes the monitoring capabilities from info/L3_MON.

This patch only adds read support for monitoring data.

Signed-off-by: René Treffer <treffer@measite.de>
2026-08-27 12:28:31 +02:00