(value float64, labels ...string)
| 41 | } |
| 42 | |
| 43 | func (d *typedFactorDesc) mustNewConstMetric(value float64, labels ...string) prometheus.Metric { |
| 44 | if d.factor != 0 { |
| 45 | value *= d.factor |
| 46 | } |
| 47 | return prometheus.MustNewConstMetric(d.desc, d.valueType, value, labels...) |
| 48 | } |
| 49 | |
| 50 | type diskstatsCollector struct { |
| 51 | ignoredDevicesPattern *regexp.Regexp |