Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List used labels by metric in grafana #256

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

IuryAlves
Copy link

@IuryAlves IuryAlves commented Jul 21, 2022

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 IuryAlves requested a review from a team as a code owner July 21, 2022 12:55
@CLAassistant
Copy link

CLAassistant commented Jul 21, 2022

CLA assistant check
All committers have signed the CLA.

@IuryAlves IuryAlves force-pushed the list-used-labels-from-metrics branch from 900ef7b to 179e778 Compare July 21, 2022 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants