flashcatcloud / categraf

one-stop telemetry collector for nightingale
https://flashcat.cloud/docs/
MIT License
860 stars 261 forks source link

请问下如何监测springboot应用指标(我看到夜莺上面有springboot仪表台) #950

Open q920447939 opened 6 months ago

q920447939 commented 6 months ago

夜莺上面有springboot仪表台,但是未说明如何采集 查看了一下conf文件夹下面也没有关于springboot的采集(不知道是否支持) image

zzmark commented 6 months ago

spring-boot-starter-actuator 可以提供 prometuehs 格式的监控信息

暴露端点的文档在这 https://docs.spring.io/spring-boot/reference/actuator/index.html https://docs.spring.io/spring-boot/reference/actuator/monitoring.html

配置采用 prometheus 刮取 https://github.com/flashcatcloud/categraf/tree/main/inputs/prometheus https://github.com/flashcatcloud/categraf/blob/main/conf/input.prometheus/prometheus.toml

q920447939 commented 6 months ago

必须还要一个prometheus 才行吗..我以为 categraf 集成了spring boot应用抓取

kongfei605 commented 6 months ago

必须还要一个prometheus 才行吗..我以为 categraf 集成了spring boot应用抓取

上面链接中最后两个就是categraf的input.prometheus插件