cortex-tools icon indicating copy to clipboard operation
cortex-tools copied to clipboard

List used labels by metric in grafana

Open IuryAlves opened this issue 3 years ago • 1 comments

This PR adds the labels used my each metric when running the cortex-tools analyse grafana command.

It adds a new field to the output called labels_by_metric that has the following format:

      "labels_by_metric": {
        "<metric_name>": [
          "label_1",
          "label_2",
            ...
        ]
      }   

IuryAlves avatar Jul 21 '22 12:07 IuryAlves

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Jul 21 '22 12:07 CLAassistant