> 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.3-supported-metrics/54.3.6-datasource-metrics.md).

# 54.3.6 数据源指标

自动配置允许使用一个名为`jdbc`的度量来检测所有可用的数据源对象。数据源插装产生的仪表表示当前池中活动的、允许的最大连接数和允许的最小连接数。每个量规都有一个由`jdbc`前缀的名称。

度量标准还根据基于bean名称计算的`数据源`名称进行标记。

此外，hikari特定的度量标准以`hikaricp`前缀公开。每个度量都使用池的名称进行标记(可以使用`spring.datasource.name`进行控制)。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://jack80342.gitbook.io/spring-boot/v.-spring-boot-actuator/54.-metrics/54.3-supported-metrics/54.3.6-datasource-metrics.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
