From 176a4c2435023ee28dd760a43b4bff56dfbf7495 Mon Sep 17 00:00:00 2001 From: Perotto Date: Tue, 10 Sep 2024 17:38:05 -0300 Subject: [PATCH] fix how the metricRequestedForBilling is counted to use queries.size() Signed-off-by: Perotto --- .../java/io/prometheus/cloudwatch/GetMetricDataDataGetter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/prometheus/cloudwatch/GetMetricDataDataGetter.java b/src/main/java/io/prometheus/cloudwatch/GetMetricDataDataGetter.java index d7994c76..2338d998 100644 --- a/src/main/java/io/prometheus/cloudwatch/GetMetricDataDataGetter.java +++ b/src/main/java/io/prometheus/cloudwatch/GetMetricDataDataGetter.java @@ -67,7 +67,7 @@ private List buildMetricDataQueries( queries.add(query); } } - metricRequestedForBilling += stats.size(); + metricRequestedForBilling += queries.size(); return queries; }