morningman closed pull request #478: Fixed: prometheus2.6 metrics
URL: https://github.com/apache/incubator-doris/pull/478
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git
a/fe/src/main/java/org/apache/doris/metric/PrometheusMetricVisitor.java
b/fe/src/main/java/org/apache/doris/metric/PrometheusMetricVisitor.java
index f9008d3a..0224e67e 100644
--- a/fe/src/main/java/org/apache/doris/metric/PrometheusMetricVisitor.java
+++ b/fe/src/main/java/org/apache/doris/metric/PrometheusMetricVisitor.java
@@ -160,8 +160,7 @@ public String visitHistogram(String name, Histogram
histogram) {
StringBuilder sb = new StringBuilder();
final String fullName = prefix + "_" + name.replaceAll("\\.", "_");
sb.append(HELP).append(fullName).append(" ").append("\n");
- sb.append(TYPE).append(fullName).append(" ").append("\n");
- sb.append(fullName);
+ sb.append(TYPE).append(fullName).append(" ").append("summary\n");
Snapshot snapshot = histogram.getSnapshot();
sb.append(fullName).append("{quantile=\"0.75\"}
").append(snapshot.get75thPercentile()).append("\n");
@@ -178,7 +177,7 @@ public String visitHistogram(String name, Histogram
histogram) {
public String getPaloNodeInfo() {
final String PALO_NODE_INFO = "palo_node_info";
StringBuilder sb = new StringBuilder();
- sb.append(Joiner.on(" ").join(TYPE, PALO_NODE_INFO, "gauge", "\n"));
+ sb.append(Joiner.on(" ").join(TYPE, PALO_NODE_INFO, "gauge\n"));
sb.append(PALO_NODE_INFO).append("{type=\"fe_node_num\",
state=\"total\"} ")
.append(Catalog.getInstance().getFrontends(null).size()).append("\n");
sb.append(PALO_NODE_INFO).append("{type=\"be_node_num\",
state=\"total\"} ")
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]