Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/303.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 弹簧靴执行器vs普罗米修斯Jmx出口商_Java_Spring Boot_Prometheus_Jmx_Spring Boot Actuator - Fatal编程技术网

Java 弹簧靴执行器vs普罗米修斯Jmx出口商

Java 弹簧靴执行器vs普罗米修斯Jmx出口商,java,spring-boot,prometheus,jmx,spring-boot-actuator,Java,Spring Boot,Prometheus,Jmx,Spring Boot Actuator,为了从spring boot micro服务导出度量(到Prometheus),我们可以使用spring boot actuator,另外一个选项是在运行服务时将Prometheus JMX exporter()用作javaAgent。虽然这两个选项的用途相同,但我确实看到JMX导出器导出的度量比spring引导执行器多得多。我浏览了一些spring boot文档,看看是否有任何选项可以使用spring boot actuator启用更多度量,看起来所有JMX度量都是默认启用的。所以问题是,有没

为了从spring boot micro服务导出度量(到Prometheus),我们可以使用spring boot actuator,另外一个选项是在运行服务时将Prometheus JMX exporter()用作javaAgent。虽然这两个选项的用途相同,但我确实看到JMX导出器导出的度量比spring引导执行器多得多。我浏览了一些spring boot文档,看看是否有任何选项可以使用spring boot actuator启用更多度量,看起来所有JMX度量都是默认启用的。所以问题是,有没有办法从spring boot actuator中公开更多的指标?对于上述两种方案是否有任何建议或比较研究


非常感谢您的帮助。谢谢

如果您使用的是Spring boot 2.x,那么它的工作原理如下:

在SpringBoot2.0中,内部指标被测微计支持所取代,因此我们可以期待突破性的变化。如果我们的应用程序使用度量服务,如GaugeService或CounterService,它们将不再可用。 相反,我们被期望直接与测微计交互。在SpringBoot2.0中,我们将为我们配置MeterRegistry类型的bean

对于Spring boot 1.x:

metrics端点发布有关OS和JVM以及应用程序级指标的信息。一旦启用,我们将获得诸如内存、堆、处理器、线程、加载的类、卸载的类和线程池等信息,以及一些HTTP指标

这看起来像是普罗米修斯JMX