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

Add a dashboard utils file #819

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add a dashboard utils file #819

wants to merge 2 commits into from

Conversation

cstyan
Copy link
Contributor

@cstyan cstyan commented Jul 22, 2022

During our teams migration to memberlist we missed a few configuration bits because of the split of configuration across files and also across repos. This PR is the first step I want to take to centralize some configuration and observability across loki/mimir/tempo.

This basically takes the dashboard utils file we have in each repo and moves it to a central place, plus adding some functions to the dashboard function so that things like the metric for the template var searches and the dropdown "link to other dashboards" name.

Signed-off-by: Callum Styan [email protected]

Signed-off-by: Callum Styan <[email protected]>
Signed-off-by: Callum Styan <[email protected]>
@cstyan
Copy link
Contributor Author

cstyan commented Jul 23, 2022

current lint failure is not from my code

Copy link
Contributor

@pracucci pracucci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can see some functions differ from Mimir ones (e.g. missing resources request). If the aim is to really being consistent across the 3 DBs (which looks a good goal!) I would consider open draft PRs in the 3 respective projects to see the impact of using these utils across Mimir, Loki and Tempo.

keepTime: true,
tags: $._config.tags,
targetBlank: false,
title: 'Loki Dashboards',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks wrong to me having "Loki" here, being this a generic util.

@stale
Copy link

stale bot commented Nov 2, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Nov 2, 2022
@cstyan
Copy link
Contributor Author

cstyan commented Nov 21, 2022

I'll pick this up again soon

@stale stale bot removed the stale label Nov 21, 2022
@pracucci
Copy link
Contributor

I'll pick this up again soon

Keep in mind many of these have changed in Mimir since then.

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.

2 participants