mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-10-19 19:19:04 +02:00
docs: clarify which raw performance counters need a multiplier (#2775)
Co-authored-by: Claude <noreply@anthropic.com> Signed-off-by: Claude <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude
parent
be5942d943
commit
dd5f441ac6
@@ -442,8 +442,8 @@ func TestCollectorMetricTypePerCounter(t *testing.T) {
|
||||
}
|
||||
|
||||
// TestCollectorMultiplier checks that the multiplier scales the exported value.
|
||||
// Commit Limit only changes when a page file is resized, so both objects read
|
||||
// the same value.
|
||||
// Commit Limit only changes when a page file grows or is resized, which is
|
||||
// unlikely between the two reads, so both objects read the same value.
|
||||
func TestCollectorMultiplier(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
|
||||
@@ -23,8 +23,8 @@ import (
|
||||
"math"
|
||||
)
|
||||
|
||||
// maxExactInteger is the largest integer up to which every integer has an
|
||||
// exact float64 representation.
|
||||
// maxExactInteger bounds the divisor. Beyond it, several integers round to the
|
||||
// same reciprocal, so the rounded divisor may not be the one the user meant.
|
||||
const maxExactInteger = 1 << 53
|
||||
|
||||
// Multiplier scales values. The zero value leaves them unchanged.
|
||||
|
||||
@@ -61,8 +61,8 @@ func TestNewInvalid(t *testing.T) {
|
||||
}
|
||||
|
||||
// TestApplyDividesExactly checks that a multiplier that is the reciprocal of
|
||||
// an integer gives the correctly rounded quotient, which a plain
|
||||
// multiplication misses for about one in seven values.
|
||||
// an integer gives the correctly rounded quotient. A plain multiplication
|
||||
// misses it for some values, for example 9 * 0.001.
|
||||
func TestApplyDividesExactly(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user