-
Notifications
You must be signed in to change notification settings - Fork 23
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
Upgrade from grafonnet-lib to grafonnet 10.4.0 #90
Conversation
562aa75
to
f5aba6a
Compare
I am tempted to reorganize some of the panels while at it, but in order to make review and merging easier, I'll hold off and do that separately! |
Currently, on latest grafana, the dashboards will currently show 'no data' because the `$hub` variable is not set correctly (see 2i2c-org/infrastructure#3237 for details). The longer term solution to this is: 1. Move away from the deprecated graphPanel to timeseries objects for panel 2. jupyterhub#89 Both of these are being undertaken in jupyterhub#90, but in the meantime, this PR implements [this workaround](jupyterhub#90) so end users can at least see data.
A follow-up to jupyterhub#91, as the openscapes community reported this is causing issues not just for the $hub variable but everything else as well. jupyterhub#90 is the long term fix
3e8a781
to
44d77f3
Compare
@yuvipanda I went ahead and rebased this on main after merging some pre-commit stuff to resolve the merge conflicts, and I pushed two commits to ensure linting of the new common.libsonnet file and fix a typo in a docstring that otherwise caused black to format things weirdly. |
5b662f4
to
affa248
Compare
65b5ec8
to
9f1c40a
Compare
I've migrated all dashboards and panels so they render now, with some commented out options still. I've not done any visual testing yet of how dashboards look before after change, and instead relied on ensuring jsonnet files render at all, and that Considering how I should best review changes visually, thinking about for example:
I figure I'll go for the slow but known-to-work strategy of using deploy.py. |
2d2941f
to
ed3efc3
Compare
I'm currently testing this at https://grafana.pilot.2i2c.cloud and can conclude there are things to fix still, but now its easy to compare side by side with the main branch's changes as I've deployed these to a dedicated folder.
|
Without this, we end up overwriting some but not all dashboards in a folder we don't add the dashboard to. This is probably related to naming and generated uid's overlapping or similar. This has been tested to work well though.
292db1e
to
9bcc61b
Compare
I think we could manage to get prometheus server cpu/metrics etc presented with the same helper functions if we retain these things.
Co-authored-by: Georgiana <[email protected]>
b9d3cf7
to
7e3a194
Compare
Co-authored-by: Georgiana <[email protected]>
5013174
to
b421bd5
Compare
Thank you for reviewing this @GeorgianaElena!!!!
Thank you for going for the review anyhow - I think the visual review is the key thing here as its the actual result. I think this is in a mergable state, and I opened #116 and #117 to track related work discussed in comments. Thank you @yuvipanda for starting this work! |
Currently, on latest grafana, the dashboards will currently show 'no data' because the `$hub` variable is not set correctly (see 2i2c-org/infrastructure#3237 for details). The longer term solution to this is: 1. Move away from the deprecated graphPanel to timeseries objects for panel 2. jupyterhub#89 Both of these are being undertaken in jupyterhub#90, but in the meantime, this PR implements [this workaround](jupyterhub#90) so end users can at least see data.
A follow-up to jupyterhub#91, as the openscapes community reported this is causing issues not just for the $hub variable but everything else as well. jupyterhub#90 is the long term fix
Update
This PR was worked by Yuvi and Erik, with notes from Erik in #90 (comment).
Original PR description
It's mostly a mechanical translation. I'll do it one at a time, and eventually it'll be done.
Custom layout code in our deployer is no longer required, as grafonnet supports automatic grid
layout! But it doesn't support mixed widths (boo)
It will also get rid of this ugly notice:
Remove the google cloud specific bits in our labeling, and make them work with at EKS provisioned with eksctl and AKS on Azure
Here we see that on AWS too we will get info split out per-nodegroup, rather than all aggregated together!Everything that displays just node names will now also have the nodepool it is a part of displayed alongside. Makes identification much easier, especially on AWS with its just-ip nodenames
Would've been practically impossible to see that there was an OOM kill in a core node here.
TODO
Files to migrate
Remaining work
Things to catch
Tracked by Revise to stack or not to stack timeseries in a panel #116
Fixes #89