@@ -559,6 +559,7 @@ func (c *Manager) Stat() (*stats.Metrics, error) {
559559 NrPeriods : out ["nr_periods" ],
560560 NrThrottled : out ["nr_throttled" ],
561561 ThrottledUsec : out ["throttled_usec" ],
562+ PSI : getStatPSIFromFile (filepath .Join (c .path , "cpu.pressure" )),
562563 }
563564 metrics .Memory = & stats.MemoryStat {
564565 Anon : out ["anon" ],
@@ -596,6 +597,7 @@ func (c *Manager) Stat() (*stats.Metrics, error) {
596597 UsageLimit : getStatFileContentUint64 (filepath .Join (c .path , "memory.max" )),
597598 SwapUsage : getStatFileContentUint64 (filepath .Join (c .path , "memory.swap.current" )),
598599 SwapLimit : getStatFileContentUint64 (filepath .Join (c .path , "memory.swap.max" )),
600+ PSI : getStatPSIFromFile (filepath .Join (c .path , "memory.pressure" )),
599601 }
600602 if len (memoryEvents ) > 0 {
601603 metrics .MemoryEvents = & stats.MemoryEvents {
@@ -606,7 +608,10 @@ func (c *Manager) Stat() (*stats.Metrics, error) {
606608 OomKill : memoryEvents ["oom_kill" ],
607609 }
608610 }
609- metrics .Io = & stats.IOStat {Usage : readIoStats (c .path )}
611+ metrics .Io = & stats.IOStat {
612+ Usage : readIoStats (c .path ),
613+ PSI : getStatPSIFromFile (filepath .Join (c .path , "io.pressure" )),
614+ }
610615 metrics .Rdma = & stats.RdmaStat {
611616 Current : rdmaStats (filepath .Join (c .path , "rdma.current" )),
612617 Limit : rdmaStats (filepath .Join (c .path , "rdma.max" )),
0 commit comments