> For the complete documentation index, see [llms.txt](https://jack80342.gitbook.io/spring-boot/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jack80342.gitbook.io/spring-boot/v.-spring-boot-actuator/54.-metrics/54.2-zhi-chi-de-jian-kong-xi-tong/54.2.8-prometheus.md).

# 54.2.8 Prometheus

[Prometheus](http://micrometer.io/docs/registry/prometheus)希望通过抓取或轮询单个应用程序实例来获得度量数据。Spring Boot在`/actuator/prometheus`上提供了一个执行器端点，可以用适当的格式显示[Prometheus刮片](https://prometheus.io/)。

**注** 缺省情况下端点不可用，必须公开端点，请参阅公开端点以获得更多详细信息。

下面是一个要添加到`prometheus.yml`中的`scrape_config`示例：

```
scrape_configs:
  - job_name: 'spring'
    metrics_path: '/actuator/prometheus'
    static_configs:
      - targets: ['HOST:PORT']
```
