[Bug fix][metrics] correct fe collector type for jvm_gc (#28784)

Co-authored-by: 胥剑旭 <xujianxu@xujianxudeMacBook-Pro.local>
This commit is contained in:
XuJianxu
2023-12-21 16:21:13 +08:00
committed by GitHub
parent 4ddef31c20
commit 6dcf79fc27

View File

@ -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\"} ")