23 lines
775 B
Java
23 lines
775 B
Java
|
|
//package com.nis.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("processorNatGatewayMonitorSnat:record by gatewayid and nodeip")
|
|||
|
|
// .register(collectorRegistry);
|
|||
|
|
// }
|
|||
|
|
//
|
|||
|
|
//}
|