> For the complete documentation index, see [llms.txt](https://160668873.gitbook.io/tkey-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://160668873.gitbook.io/tkey-docs/jian-kong-jie-duan/micrometer.md).

# Spring Boot Micrometer

## 相应组件部署

* [部署说明](https://github.com/cdk8s/tkey-docs/blob/master/deployment/deployment-core.md)

## 引入 Prometheus

```
<dependency>
    <groupId>io.micrometer</groupId>
    <artifactId>micrometer-registry-prometheus</artifactId>
</dependency>
```

访问：<http://sso.cdk8s.com:19091/tkey-actuator/actuator/prometheus>

可以看到 prometheus 暴露出来的埋点信息

## Micrometer Tag

```
$instance - Instance Name
$application - Spring Boot Application Name
$hikaricp - HikariCP Connection Pool Name
```
