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

[CHORE] enhancing dashboard usage #30

Merged
merged 1 commit into from
Nov 29, 2024
Merged

Conversation

nicolastakashi
Copy link
Contributor

This pull request includes changes to improve the handling of dashboard usage information in the metric usage data structure. The most important changes involve adding a new DashboardUsage type and updating the MetricUsage structure to use this new type.

Improvements to data structures:

  • pkg/api/v1/metric_usage.go: Added a new DashboardUsage type with fields for UID, Name, and URL. Updated the MetricUsage structure to use a set of DashboardUsage instead of a set of strings for dashboards.

Updates to usage generation functions:

  • source/grafana/grafana.go: Modified the generateUsage function to create and add DashboardUsage objects instead of just URLs for Grafana dashboards.
  • source/perses/perses.go: Modified the generateUsage function to create and add DashboardUsage objects instead of just URLs for Perses dashboards.

@nicolastakashi nicolastakashi force-pushed the chore/enhance-dashboard-usage branch from 04385a6 to 9338d04 Compare November 26, 2024 23:29
@nicolastakashi nicolastakashi changed the title [CHORE] enhanciing dashboard usage [CHORE] enhancing dashboard usage Nov 26, 2024
source/perses/perses.go Outdated Show resolved Hide resolved
pkg/api/v1/metric_usage.go Outdated Show resolved Hide resolved
@nicolastakashi nicolastakashi force-pushed the chore/enhance-dashboard-usage branch from 9338d04 to 7609a52 Compare November 27, 2024 10:50
source/perses/perses.go Outdated Show resolved Hide resolved
@nicolastakashi nicolastakashi force-pushed the chore/enhance-dashboard-usage branch from f5d246d to 26b0d88 Compare November 28, 2024 22:02
Signed-off-by: Nicolas Takashi <[email protected]>
@nicolastakashi nicolastakashi force-pushed the chore/enhance-dashboard-usage branch from 26b0d88 to 169593d Compare November 28, 2024 22:04
Copy link
Member

@Nexucis Nexucis left a comment

Choose a reason for hiding this comment

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

nice thanks for the improvement Nicolas !

@Nexucis Nexucis merged commit 58c64fa into main Nov 29, 2024
5 checks passed
@Nexucis Nexucis deleted the chore/enhance-dashboard-usage branch November 29, 2024 09:12
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