From 39db462271c405885374e3f8520d9d0ae03df5cd Mon Sep 17 00:00:00 2001 From: patsonluk Date: Mon, 9 Sep 2024 19:00:08 -0700 Subject: [PATCH] Adjust PrometheusMetricsServlet after changing to meter for autocommit metrics --- .../org/apache/solr/servlet/PrometheusMetricsServlet.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/solr/core/src/java/org/apache/solr/servlet/PrometheusMetricsServlet.java b/solr/core/src/java/org/apache/solr/servlet/PrometheusMetricsServlet.java index 16629e0f503..ee9628dd52f 100644 --- a/solr/core/src/java/org/apache/solr/servlet/PrometheusMetricsServlet.java +++ b/solr/core/src/java/org/apache/solr/servlet/PrometheusMetricsServlet.java @@ -718,15 +718,11 @@ enum CoreMetric { AUTOCOMMIT( "UPDATE.updateHandler.autoCommits", "auto_commits_hard", - "cumulative number of hard auto commits across cores", - null, - PrometheusMetricType.COUNTER), + "cumulative number of hard auto commits across cores"), SOFT_AUTOCOMMIT( "UPDATE.updateHandler.softAutoCommits", "auto_commits_soft", - "cumulative number of soft auto commits across cores", - null, - PrometheusMetricType.COUNTER), + "cumulative number of soft auto commits across cores"), COMMITS("UPDATE.updateHandler.commits", "commits", "cumulative number of commits across cores"), CUMULATIVE_DEL_BY_ID( "UPDATE.updateHandler.cumulativeDeletesById",