Commit 04eff7ed authored by ale's avatar ale
Browse files

Merge branch 'v2'

parents cb0f5979 373d8125
Pipeline #20630 passed with stages
in 1 minute and 11 seconds
......@@ -56,13 +56,13 @@ func (p *cpuV2Parser) parse(path, slice, unit string, ch chan<- prometheus.Metri
ch <- prometheus.MustNewConstMetric(
cpuV2PressureWaitingDesc,
prometheus.CounterValue,
float64(waiting),
float64(waiting)/usecs,
slice, unit,
)
ch <- prometheus.MustNewConstMetric(
cpuV2PressureStalledDesc,
prometheus.CounterValue,
float64(stalled),
float64(stalled)/usecs,
slice, unit,
)
}
......
......@@ -149,13 +149,13 @@ func (p *blkioV2Parser) parse(path, slice, unit string, ch chan<- prometheus.Met
ch <- prometheus.MustNewConstMetric(
ioV2PressureWaitingDesc,
prometheus.CounterValue,
float64(waiting),
float64(waiting)/usecs,
slice, unit,
)
ch <- prometheus.MustNewConstMetric(
ioV2PressureStalledDesc,
prometheus.CounterValue,
float64(stalled),
float64(stalled)/usecs,
slice, unit,
)
}
......
......@@ -48,13 +48,13 @@ func (p *memoryV2Parser) parse(path, slice, unit string, ch chan<- prometheus.Me
ch <- prometheus.MustNewConstMetric(
memV2PressureWaitingDesc,
prometheus.CounterValue,
float64(waiting),
float64(waiting)/usecs,
slice, unit,
)
ch <- prometheus.MustNewConstMetric(
memV2PressureStalledDesc,
prometheus.CounterValue,
float64(stalled),
float64(stalled)/usecs,
slice, unit,
)
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment