cortex-tools
cortex-tools copied to clipboard
List used labels by metric in grafana
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",
...
]
}