pingcap / diag

A tool to collect diagnostic data from TiDB Clusters
https://docs.pingcap.com/tidb/stable/clinic-introduction
Apache License 2.0
24 stars 9 forks source link

support regular expression in the metricslabel #471

Open guoshouyan opened 5 months ago

guoshouyan commented 5 months ago

Feature Request

Hi team, I'm using diag to detch lightning metrics and upload to clinic. Our lighting are running on different namespace, for example, lightning-usa, lightning -usb, lightning-usc.

In our grafana metrics we can filter them by adding the filter of namespace=~"lightning-us.*". But I can not do that with diag util metricdump --metricslabel "namespace=~lightning-us.*"

Currently I have to run the diag 3 times, each time only upload one namespace metrics

Is your feature request related to a problem? Please describe:

Describe the feature you'd like:

Why the featue is needed:

Describe alternatives you've considered:

Teachability, Documentation, Adoption, Migration Strategy: