Skip to content

Commit

Permalink
HDDS-11339. Let PrometheusServlet rely on periodically published metr…
Browse files Browse the repository at this point in the history
…ics (apache#7092)
  • Loading branch information
devmadhuu authored Aug 29, 2024
1 parent f22c6f8 commit 2d372f6
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
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;

Expand Down Expand Up @@ -58,7 +56,6 @@ protected void doGet(HttpServletRequest req, HttpServletResponse resp)
return;
}
}
DefaultMetricsSystem.instance().publishMetricsNow();
PrintWriter writer = resp.getWriter();
getPrometheusSink().writeMetrics(writer);
writer.write("\n\n#Dropwizard metrics\n\n");
Expand Down

0 comments on commit 2d372f6

Please sign in to comment.