Grafana:减少显示的标记

Grafana:减少显示的标记,grafana,Grafana,我已经创建了一个面板。图例如下所示: 正如你所看到的,有很多标签 如何减少标记的数量或仅选择标记?您可以使用“图例”字段控制要显示的内容 例如,您可以使用以下内容: Legend = {{__name__}}{instance="{{instance}}"} 要获得: httpcomponents_httpclient_pool_total_connections{instance="10.128.4.38:8080} httpcomponents_httpcl

我已经创建了一个面板。图例如下所示:

正如你所看到的,有很多标签


如何减少标记的数量或仅选择标记?

您可以使用“图例”字段控制要显示的内容

例如,您可以使用以下内容:

Legend = {{__name__}}{instance="{{instance}}"}
要获得:

httpcomponents_httpclient_pool_total_connections{instance="10.128.4.38:8080}
httpcomponents_httpclient_pool_tootl_pending{instance="10.128.4.38:8080}
httpcomponents_httpclient_pool_total_connections(10.128.4.38:8080)
httpcomponents_httpclient_pool_tootl_pending(10.128.4.38:8080)
或者简单地说:

Legend = {{__name__}}({{instance}})
要获得:

httpcomponents_httpclient_pool_total_connections{instance="10.128.4.38:8080}
httpcomponents_httpclient_pool_tootl_pending{instance="10.128.4.38:8080}
httpcomponents_httpclient_pool_total_connections(10.128.4.38:8080)
httpcomponents_httpclient_pool_tootl_pending(10.128.4.38:8080)

您可以使用“图例”字段控制要显示的内容

例如,您可以使用以下内容:

Legend = {{__name__}}{instance="{{instance}}"}
要获得:

httpcomponents_httpclient_pool_total_connections{instance="10.128.4.38:8080}
httpcomponents_httpclient_pool_tootl_pending{instance="10.128.4.38:8080}
httpcomponents_httpclient_pool_total_connections(10.128.4.38:8080)
httpcomponents_httpclient_pool_tootl_pending(10.128.4.38:8080)
或者简单地说:

Legend = {{__name__}}({{instance}})
要获得:

httpcomponents_httpclient_pool_total_connections{instance="10.128.4.38:8080}
httpcomponents_httpclient_pool_tootl_pending{instance="10.128.4.38:8080}
httpcomponents_httpclient_pool_total_connections(10.128.4.38:8080)
httpcomponents_httpclient_pool_tootl_pending(10.128.4.38:8080)