类 PrometheusController


  • @RestController
    @ConditionalOnProperty(name="nacos.prometheus.metrics.enabled",
                           havingValue="true")
    public class PrometheusController
    extends java.lang.Object
    Support Prometheus SD Controller.
    作者:
    karsonto
    • 字段概要

      字段 
      修饰符和类型 字段 说明
      private com.alibaba.nacos.naming.core.InstanceOperatorClientImpl instanceServiceV2  
      private com.alibaba.nacos.naming.core.v2.ServiceManager serviceManager  
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      org.springframework.http.ResponseEntity metric()
      Get all service instances.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 字段详细资料

      • instanceServiceV2

        @Autowired
        private com.alibaba.nacos.naming.core.InstanceOperatorClientImpl instanceServiceV2
      • serviceManager

        private final com.alibaba.nacos.naming.core.v2.ServiceManager serviceManager
    • 构造器详细资料

      • PrometheusController

        public PrometheusController()
    • 方法详细资料

      • metric

        @GetMapping(value="/prometheus",
                    produces="application/json; charset=UTF-8")
        public org.springframework.http.ResponseEntity metric()
                                                       throws com.alibaba.nacos.api.exception.NacosException
        Get all service instances.
        抛出:
        com.alibaba.nacos.api.exception.NacosException - NacosException.