@@ -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" ],
@@ -598,6 +599,7 @@ func (c *Manager) Stat() (*stats.Metrics, error) {
598599 SwapUsage : getStatFileContentUint64 (filepath .Join (c .path , "memory.swap.current" )),
599600 SwapLimit : getStatFileContentUint64 (filepath .Join (c .path , "memory.swap.max" )),
600601 SwapMaxUsage : getStatFileContentUint64 (filepath .Join (c .path , "memory.swap.peak" )),
602+ PSI : getStatPSIFromFile (filepath .Join (c .path , "memory.pressure" )),
601603 }
602604 if len (memoryEvents ) > 0 {
603605 metrics .MemoryEvents = & stats.MemoryEvents {
@@ -608,7 +610,10 @@ func (c *Manager) Stat() (*stats.Metrics, error) {
608610 OomKill : memoryEvents ["oom_kill" ],
609611 }
610612 }
611- metrics .Io = & stats.IOStat {Usage : readIoStats (c .path )}
613+ metrics .Io = & stats.IOStat {
614+ Usage : readIoStats (c .path ),
615+ PSI : getStatPSIFromFile (filepath .Join (c .path , "io.pressure" )),
616+ }
612617 metrics .Rdma = & stats.RdmaStat {
613618 Current : rdmaStats (filepath .Join (c .path , "rdma.current" )),
614619 Limit : rdmaStats (filepath .Join (c .path , "rdma.max" )),
0 commit comments