From ed3324d5ce62889b969d2f8cbcf80ab9e172656f Mon Sep 17 00:00:00 2001 From: Hiroshi Hatake Date: Tue, 30 May 2023 13:54:26 +0900 Subject: [PATCH] in_windows_exporter_metrics: Fix wrong metrics type of free megabytes free_megabytes metrics should increase/decrease its values. Using gauge type should be correct here instead of using counter type. Signed-off-by: Hiroshi Hatake --- plugins/in_windows_exporter_metrics/we_logical_disk.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/in_windows_exporter_metrics/we_logical_disk.c b/plugins/in_windows_exporter_metrics/we_logical_disk.c index 0b6842a5481..df2e09c41cf 100644 --- a/plugins/in_windows_exporter_metrics/we_logical_disk.c +++ b/plugins/in_windows_exporter_metrics/we_logical_disk.c @@ -121,9 +121,9 @@ struct we_perflib_metric_spec logical_disk_metric_specs[] = { "Total amount of writeing time to the disk", "volume"), - WE_PERFLIB_COUNTER_SPEC("free_megabytes", - "Free megabytes on the disk", - "volume"), + WE_PERFLIB_GAUGE_SPEC("free_megabytes", + "Free megabytes on the disk", + "volume"), /* WE_PERFLIB_COUNTER_SPEC("size_megabytes", */ /* "Total amount of free megabytes on the disk", */