From f07aceb0dd76122ee59f71e765f1dd067b5d1b93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Otto=20Kr=C3=B6pke?= Date: Mon, 10 Feb 2025 18:23:35 +0100 Subject: [PATCH] cs: fix metric description (#1881) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jan-Otto Kröpke Signed-off-by: Jan-Otto Kröpke --- internal/collector/cs/cs.go | 4 ++-- tools/e2e-output.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/collector/cs/cs.go b/internal/collector/cs/cs.go index adefcd15..61a19ed5 100644 --- a/internal/collector/cs/cs.go +++ b/internal/collector/cs/cs.go @@ -37,7 +37,7 @@ type Collector struct { config Config // physicalMemoryBytes - // Deprecated: Use windows_physical_memory_total_bytes instead + // Deprecated: Use windows_memory_physical_total_bytes instead physicalMemoryBytes *prometheus.Desc // logicalProcessors // Deprecated: Use windows_cpu_logical_processor instead @@ -85,7 +85,7 @@ func (c *Collector) Build(logger *slog.Logger, _ *mi.Session) error { ) c.physicalMemoryBytes = prometheus.NewDesc( prometheus.BuildFQName(types.Namespace, Name, "physical_memory_bytes"), - "Deprecated: Use windows_physical_memory_total_bytes instead", + "Deprecated: Use windows_memory_physical_total_bytes instead", nil, nil, ) diff --git a/tools/e2e-output.txt b/tools/e2e-output.txt index c03cfbd0..30998eae 100644 --- a/tools/e2e-output.txt +++ b/tools/e2e-output.txt @@ -105,7 +105,7 @@ test_alpha_total 42 # TYPE windows_cs_hostname gauge # HELP windows_cs_logical_processors Deprecated: Use windows_cpu_logical_processor instead # TYPE windows_cs_logical_processors gauge -# HELP windows_cs_physical_memory_bytes Deprecated: Use windows_physical_memory_total_bytes instead +# HELP windows_cs_physical_memory_bytes Deprecated: Use windows_memory_physical_total_bytes instead # TYPE windows_cs_physical_memory_bytes gauge # HELP windows_exporter_build_info A metric with a constant '1' value labeled by version, revision, branch, goversion from which windows_exporter was built, and the goos and goarch for the build. # TYPE windows_exporter_build_info gauge