[Bug fix][metrics] correct fe collector type for jvm_gc (#28784)
Co-authored-by: 胥剑旭 <xujianxu@xujianxudeMacBook-Pro.local>
This commit is contained in:
@ -105,7 +105,7 @@ public class PrometheusMetricVisitor extends MetricVisitor {
|
||||
|
||||
// gc
|
||||
sb.append(Joiner.on(" ").join(HELP, JVM_GC, "jvm gc stat\n"));
|
||||
sb.append(Joiner.on(" ").join(TYPE, JVM_GC, "\n"));
|
||||
sb.append(Joiner.on(" ").join(TYPE, JVM_GC, "gauge\n"));
|
||||
for (GarbageCollector gc : jvmStats.getGc()) {
|
||||
sb.append(JVM_GC).append("{");
|
||||
sb.append("name=\"").append(gc.getName()).append(" Count").append("\", ").append("type=\"count\"} ")
|
||||
|
||||
Reference in New Issue
Block a user