> 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.5-customizing-individual-metrics.md).

# 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");
}
```
