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

fix: grafana dashboard templating #3826

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

takirala
Copy link
Contributor

@takirala takirala commented Jan 30, 2025

What does this PR change?

When i install kubecost helm chart with an external grafana, some dashboards are created with hardcoded uid's for datasources which makes grafana error out when loading the panels. See example

Screenshot 2025-01-20 at 11 55 06 PM

This change parametrizes the uid for datasource. We already do this in other dashboards which are working as expected. I copied the parameterization from other working dashboards.

See https://kubecost.slack.com/archives/CLFV60Y90/p1737446014836879 for more context

After applying the fixes from this PR, i was able to browse the dashboards correctly:
Screenshot 2025-01-30 at 11 48 05 AM

Does this PR rely on any other PRs?

No

How does this PR impact users? (This is the kind of thing that goes in release notes!)

Fixes some broken templating in grafana dashboards

Links to Issues or tickets this PR addresses or fixes

https://kubecost.slack.com/archives/CLFV60Y90/p1737446014836879
https://kubecost.atlassian.net/servicedesk/customer/portal/3/SUP-6670

What risks are associated with merging this PR? What is required to fully test this PR?

Install kubecost with grafana sidecar and dashboards will fail out of the box. Update the dashboard configmaps to see the error get resolved

How was this PR tested?

I updated the grafana dashboard configmaps manually which fixed the invalida datasource error

Have you made an update to documentation? If so, please provide the corresponding PR.

No

Signed-off-by: Tarun Gupta Akirala <[email protected]>
@takirala
Copy link
Contributor Author

Ping @jessegoodier @ivankube @cliffcolvin PTAL 🙏

@takirala
Copy link
Contributor Author

takirala commented Feb 4, 2025

@jessegoodier can you ptal at this - I would love to get this cherry picked into 2.6 branch for next rc cut if that's acceptable

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