【问题标题】:Disable specific metric in Spring在 Spring 中禁用特定指标
【发布时间】:2019-01-16 13:58:19
【问题描述】:

在 Spring 指标中,我有很多以下指标:

response.auth.admin.realms.1ee065af2()":127.0

如何通过掩码“响应”禁用它们?

【问题讨论】:

    标签: spring metrics


    【解决方案1】:

    在你的 application.yml 中添加一行

    management.metrics.enable.response: false
    

    或属性文件

    management.metrics.enable.response=false
    

    其中 response 是您要关闭的指标的前缀。

    【讨论】:

      猜你喜欢
      • 2022-08-17
      • 2019-03-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-06-14
      • 2016-01-25
      • 2021-05-09
      • 1970-01-01
      相关资源
      最近更新 更多