-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
mgr/dashboard: monitoring: replace Grafana JSON with Grafonnet based code #42194
Conversation
02def87
to
8929802
Compare
It already looks like we'll be saving a lot of boilerplate code with this approach. Some of it is due to the data being written differently. In jsonnet there are some attributes on a single line, in JSON they aren't. But, assuming that |
0db9f96
to
4e573f8
Compare
4e573f8
to
396ac09
Compare
396ac09
to
eccc9af
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added a bunch of comments of things that I noticed and might have done differently. Those are not necessarily required to be changed, it's just my opinion.
But there a few things that we need to have a look at:
- the
jsondiff
tools seems to be a different one on my system (Ubuntu 20.04) and is not compatible with these changes - I'm not sure if it is safe to remove "iteration", but it might be. I hope it is, as it doesn't seem to be possible to keep it, is that correct?
- a refresh time interval has likely been forgotten to be included
- the
unit
field and its value has been removed in two panels. It might be okay, but we'll need to check.
Please consider the rest not as requested changes but as benevolent suggestions.
eccc9af
to
2ececb5
Compare
Thanks @p-se . I have addressed most of your comments. But as of now I don't see any side-effects of removing |
Yeah, might be the case that we don't need to worry about those. Have you found anything out about the |
2ececb5
to
0194123
Compare
I have updated the jsondiff command and removed
@p-se I have added the |
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
@tchaikov @ideepika as discussed in the chat, @aaSharma14 is reverting a small subset of changes (installing Grafana json files in the CMakeLists.txt) to see if that's the reason for the failure. |
Fixes:https://tracker.ceph.com/issues/52238 Signed-off-by: Aashish Sharma <aasharma@redhat.com>
This PR tends to fix the issue caused by ceph#42194 Fixes:https://tracker.ceph.com/issues/52238 Signed-off-by: Aashish Sharma <aasharma@redhat.com>
This PR tends to fix the issue caused by ceph#42194 Fixes:https://tracker.ceph.com/issues/52238 Signed-off-by: Aashish Sharma <aasharma@redhat.com>
This PR tends to fix the issue caused by ceph#42194 Fixes:https://tracker.ceph.com/issues/52238 Signed-off-by: Aashish Sharma <aasharma@redhat.com> (cherry picked from commit 4907c78) Conflicts: ceph.spec.in (added jsonnet package) monitoring/grafana/dashboards/CMakeLists.txt (added grafana jsons code)
This PR tends to fix the issue caused by ceph#42194 Fixes:https://tracker.ceph.com/issues/52238 Signed-off-by: Aashish Sharma <aasharma@redhat.com> (cherry picked from commit 4907c78) Conflicts: ceph.spec.in (added jsonnet package) monitoring/grafana/dashboards/CMakeLists.txt (added grafana jsons code) (cherry picked from commit 570160e)
This PR tends to fix the issue caused by ceph#42194 Fixes:https://tracker.ceph.com/issues/52238 Signed-off-by: Aashish Sharma <aasharma@redhat.com> (cherry picked from commit 4907c78) Conflicts: ceph.spec.in (added jsonnet package) monitoring/grafana/dashboards/CMakeLists.txt (added grafana jsons code) (cherry picked from commit 570160e)
@epuertat @aaSharma14 This PR causes the build to reach out onto the Internet and attempt to download a git repo from github. In environments like the openSUSE Build Service where the build machine does not have a network connection, that completely breaks the build. Since we already use the |
Also, whatever the fix is, it will need to be backported to pacific, because this PR has already been backported to (and merged into) pacific via #42812 :-/ |
Since the compiled Grafana dashboards are included in the repository anyway and the part of the build process that requires a working internet connection seems to be a test only (provided that is correct), would it be viable to disable |
Hm, wouldn't that break the build of the ceph-grafana-dashboards subpackage, though? See 5debf36b378b |
In general, I believe any cmake code that introduces There are two ways to download code from the Internet for use in Ceph:
The latter ( |
Indeed, it does look so: https://github.com/ceph/ceph/blob/master/CMakeLists.txt#L685-L688 It is quite interesting that there's a switch that seemingly (unless I do not fully understand it) does not work properly when turned off.
Next idea would be to change The other options, I think, are the onces you've already mentioned, @smithfarm. |
Yes. Or, just in general, guard any cmake |
This PR intends to fix the error caused by ceph#42194 Signed-off-by: Aashish Sharma <aasharma@redhat.com>
This PR intends to fix the error caused by ceph#42194 Signed-off-by: Aashish Sharma <aasharma@redhat.com>
This PR intends to fix the error caused by ceph#42194 Signed-off-by: Aashish Sharma <aasharma@redhat.com>
This PR intends to fix the error caused by ceph#42194 Fixes:https://tracker.ceph.com/issues/52338 Signed-off-by: Aashish Sharma <aasharma@redhat.com>
This PR intends to fix the error caused by ceph#42194 Fixes:https://tracker.ceph.com/issues/52338 Signed-off-by: Aashish Sharma <aasharma@redhat.com>
This PR intends to fix the error caused by ceph#42194 Fixes:https://tracker.ceph.com/issues/52338 Signed-off-by: Aashish Sharma <aasharma@redhat.com>
This PR tends to fix the issue caused by ceph#42194 Fixes:https://tracker.ceph.com/issues/52238 Signed-off-by: Aashish Sharma <aasharma@redhat.com>
This PR intends to add grafonnet to generate grafana JSON files
Fixes: https://tracker.ceph.com/issues/45184
Signed-off-by: Aashish Sharma aasharma@redhat.com
Before:
After:
Show available Jenkins commands
jenkins retest this please
jenkins test classic perf
jenkins test crimson perf
jenkins test signed
jenkins test make check
jenkins test make check arm64
jenkins test submodules
jenkins test dashboard
jenkins test api
jenkins test docs
jenkins render docs
jenkins test ceph-volume all
jenkins test ceph-volume tox