change irq psi url

Signed-off-by: mchtech <michu_an@126.com>
This commit is contained in:
mchtech 2024-06-11 10:42:57 +00:00 committed by Johannes 'fish' Ziemke
parent fe5ffa916f
commit d2a307ed93

View File

@ -109,7 +109,7 @@ func (c *pressureStatsCollector) Update(ch chan<- prometheus.Metric) error {
return fmt.Errorf("failed to retrieve pressure stats: %w", err)
}
// IRQ pressure does not have 'some' data.
// See https://github.com/torvalds/linux/blob/v6.9/kernel/sched/psi.c#L1243
// See https://github.com/torvalds/linux/blob/v6.9/include/linux/psi_types.h#L65
if vals.Some == nil && res != "irq" {
level.Debug(c.logger).Log("msg", "pressure information returned no 'some' data")
return ErrNoData