removed kpi metrics from /metrics
This commit is contained in:
parent
2f99954a4f
commit
52a53e6484
|
@ -16,7 +16,6 @@ import org.apache.commons.logging.LogFactory;
|
|||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import io.micrometer.core.instrument.Metrics;
|
||||
import io.prometheus.client.Collector.MetricFamilySamples;
|
||||
import io.prometheus.client.GaugeMetricFamily;
|
||||
import io.prometheus.client.exporter.common.TextFormat;
|
||||
|
@ -32,7 +31,7 @@ public class MetricUtils {
|
|||
@PostConstruct
|
||||
public void registerToMainEndpoint() {
|
||||
if (kpiMetrics != null) {
|
||||
kpiMetrics.forEach((k, v) -> Metrics.gauge(k, v, o -> o.obtainValue()));
|
||||
// kpiMetrics.forEach((k, v) -> Metrics.gauge(k, v, o -> o.obtainValue()));
|
||||
log.info("KPI METRICS REGISTERED: " + StringUtils.join(kpiMetrics.keySet(), ", "));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue