簡體   English   中英

JMX_exporter與Prometheus和Grafana

[英]JMX_exporter with Prometheus and Grafana

我有SpringBoot應用程序,我想對其進行jmx監視。 我已經成功地對帶有Prometheus計數器的服務以及帶有node_exporter的計算機實施了監視。 之后,我將其與grafana連接起來。 那也行。

現在,我想使用Jmx導出器獲取指標,但發現困難。 我無法獲得如何從JMX導出器獲取指標。 網上沒有那么多東西……

我需要什么來獲取指標? 啟動JMX_exporter,更改prometheus config.yml嗎?

當您擁有SpringBoot應用程序時,可以使用SpringBoot執行器來獲取指標。 只需放置SpringBoot執行器的依賴項即可。

<dependency>
   <groupId>org.springframework.boot</groupId>
   <artifactId>spring-boot-actuator</artifactId>
</dependency>

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM