This is an automated email from the ASF dual-hosted git repository.
adoroszlai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git
The following commit(s) were added to refs/heads/master by this push:
new 2d372f6abd HDDS-11339. Let PrometheusServlet rely on periodically
published metrics (#7092)
2d372f6abd is described below
commit 2d372f6abdf7d14500935c64014551f27f222d6e
Author: Devesh Kumar Singh <[email protected]>
AuthorDate: Thu Aug 29 21:02:00 2024 +0530
HDDS-11339. Let PrometheusServlet rely on periodically published metrics
(#7092)
---
.../java/org/apache/hadoop/hdds/server/http/PrometheusServlet.java | 3 ---
1 file changed, 3 deletions(-)
diff --git
a/hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/server/http/PrometheusServlet.java
b/hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/server/http/PrometheusServlet.java
index 0d01aa43b4..535a5e6c8e 100644
---
a/hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/server/http/PrometheusServlet.java
+++
b/hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/server/http/PrometheusServlet.java
@@ -24,8 +24,6 @@ import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;
-import org.apache.hadoop.metrics2.lib.DefaultMetricsSystem;
-
import io.prometheus.client.CollectorRegistry;
import io.prometheus.client.exporter.common.TextFormat;
@@ -58,7 +56,6 @@ public class PrometheusServlet extends HttpServlet {
return;
}
}
- DefaultMetricsSystem.instance().publishMetricsNow();
PrintWriter writer = resp.getWriter();
getPrometheusSink().writeMetrics(writer);
writer.write("\n\n#Dropwizard metrics\n\n");
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]