This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
nezha-olp-exporter/src/main/java/net/geedge/config/MetricConfig.java

24 lines
805 B
Java
Raw Normal View History

2021-07-05 12:42:38 +08:00
package net.geedge.config;
//package net.geedge.config;
//
//import io.prometheus.client.CollectorRegistry;
//import io.prometheus.client.Gauge;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//@Configuration
//public class MetricConfig {
//// @Autowired
// public CollectorRegistry collectorRegistry = new CollectorRegistry();
//
// @Bean
// Gauge processorNatGatewayMonitorSnat(){
// return Gauge.build().name("processorNatGatewayMonitor_snat")
// .labelNames("natgatewayid")
// .help("processorNatGatewayMonitorSnatrecord by gatewayid and nodeip")
// .register(collectorRegistry);
// }
//
//}