# Actuator+Prometheus+Grafana監控視覺化簡介

[https://www.tpisoftware.com/tpu/articleDetails/2446](https://www.tpisoftware.com/tpu/articleDetails/2446)

pom.xml 需增加以下依賴：

```XML
<dependency>
  <groupId>org.springframework.boot</groupId>
  <artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
  <groupId>io.micrometer</groupId>
  <artifactId>micrometer-registry-prometheus</artifactId>
</dependency>
```

```INI
#management.endpoint.health.show-details=ALWAYS
#management.endpoints.web.base-path=/monitor
management.endpoints.web.exposure.include=prometheus,metrics
```

- Prometheus 快速入门教程（六）：Spring Boot Actuator 实现应用监控  
    [https://www.cnblogs.com/chanshuyi/p/06\_prometheus\_with\_springboot\_actuator.html](https://www.cnblogs.com/chanshuyi/p/06_prometheus_with_springboot_actuator.html)
- Spring Boot 微服務應用整合Prometheus + Grafana 實現監控告警
    
    [https://juejin.cn/post/6844904052417904653](https://juejin.cn/post/6844904052417904653)
- spring-prometheus的指標意義
    
    [https://blog.csdn.net/ssehs/article/details/123961221](https://blog.csdn.net/ssehs/article/details/123961221)
- prometheus 使用netdata 資料  
    [https://learn.netdata.cloud/docs/exporting-metrics/prometheus#configure-prometheus-to-scrape-netdata-metrics](https://learn.netdata.cloud/docs/exporting-metrics/prometheus#configure-prometheus-to-scrape-netdata-metrics)