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 cost allocation dashboard grafonnet equivalent #4934

Merged
merged 3 commits into from
Oct 4, 2024

Conversation

GeorgianaElena
Copy link
Member

Fixes #4875

Only first two panels are ready. I've deployed them into the openscapes grafana under a testing new directory.

@GeorgianaElena
Copy link
Member Author

I give up!

The last panel that's supposed to present the costs per component and per hub doesn't work unfortunately.

And this is because I cannot find a way to specify the a variable of type Query and of subtype Infinity so i can pass it on the URL and all the other fields.

I couldn't get it to work with a custom variable either. API docs of vars is at https://grafana.github.io/grafonnet/API/dashboard/variable.html.

I will merge this PR as it is, so we can get the automation of deploying it ready as well and I will open a spike about figuring out is an infinity value is not available and what to do if it isn't and we can tackle this separately.

Btw, locally, I deployed this with the command below, ran from the jupyterhub/grafana-dashboards.

/deploy.py --dashboards-dir /Users/georgiana/dev/2i2c/pilot-hubs/grafana-dashboards --folder-name testing --folder-uid aws-ce-grafana-backend https://grafana.openscapes.2i2c.cloud

@GeorgianaElena GeorgianaElena marked this pull request as ready for review October 4, 2024 12:35
@GeorgianaElena
Copy link
Member Author

cc @consideRatio, if you want to fiddle with this more. I will open a separate spike for you to assign if you wish.

@GeorgianaElena
Copy link
Member Author

I opened #4944

@GeorgianaElena GeorgianaElena merged commit 6195a09 into 2i2c-org:main Oct 4, 2024
2 checks passed
@GeorgianaElena GeorgianaElena deleted the grafana-dash branch October 4, 2024 12:43
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.

AWS cost attribution (2c/4): convert Grafana dashboard into a .jsonnet template and version control it
1 participant