# 54.5 自定义单个指标

如果需要对特定的`Meter`实例应用定制，可以使用`io.micrometer.core.instrument.config。MeterFilter`接口。默认情况下，所有的`MeterFilter` bean都将自动应用到micrometer `MeterRegistry.Config`。

例如，如果你想把所有以`com.example`开头的meter ID，由`mytag.region`标签重命名为`mytag.area`。你可以这样做：

```java
@Bean
public MeterFilter renameRegionTagMeterFilter() {
    return MeterFilter.renameTag("com.example", "mytag.region", "mytag.area");
}
```


---

# Agent Instructions: 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.5-customizing-individual-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.
