-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Update Grafana to 5.0 beta. #3540
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
Conversation
Hi @jeffmendoza. Thanks for your PR. I'm waiting for a istio member to verify that this patch is reasonable to test. If it is, they should reply with I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
Are there going to be more dashboard files added in the future? Currently I'm hesitant to think 3 files warrants a directory copy. The alternative I'm considering is along the lines of: Dockerfile.grafana: - COPY dashboards /var/lib/grafana/dashboards/ + # possibly need to do: RUN mkdir -p /var/lib/grafana/dashboards/ + COPY istio-dashboard.json /var/lib/grafana/dashboards/ + COPY mixer-dashboard.json /var/lib/grafana/dashboards/ + COPY pilot-dashboard.json /var/lib/grafana/dashboards/ in tools/istio-docker.mk add these to GRAFANA_FILES: addons/grafana/dashboards/istio-dashboard.json addons/grafana/dashboards/mixer-dashboard.json addons/grafana/dashboards/pilot-dashboard.json an optional simplification is to remote the $(GRAFANA_FILES) dependency: - docker.grafana: addons/grafana/Dockerfile$$(suffix $$@) $(GRAFANA_FILES) + docker.grafana: addons/grafana/Dockerfile$$(suffix $$@) as the dependency is already added/handled by the preceeding "$(foreach FILE,$(GRAFANA_FILES) " line. |
/ok-to-test |
@jeffmendoza would you mind posting some screenshots of the updates to make it slightly easier to appreciate what the update looks like? |
@mattdelco What is the cost of adding a directory copy? There will be more dashboards, and I'd like it to be easier for them to be added. New contributors could be intimidated by the Makefile system. |
The cost of the directory copy is mostly about loss of consistency and increased special casing in the Makefile. If someone also later adds other files (e.g., a readme.md for devs) then those might inadvertently get added to the docker image. With individual files someone would have to update the Makefile but that'd only be to add a file to GRAFANA_FILES. The runtime cost is harder to quantify (e.g., 1 call to "cp -r" vs 3 calls to "cp"). Citing individual files will probably copy less during an incremental rebuild, but the build time will probably be dominated by "docker build" copying the entire $(ISTIO_DOCKER) directory to a temp location to perform a hermetic build. In any case I doubt anyone would notice the perf difference for such a small file count, so I was mostly asking to help gauge if the inconsistency was a worthwhile tradeoff. |
@jeffmendoza PR needs rebase |
Grafana 5.0 includes a major UI update. Configuration of datasources and dashboards is easly done via file. Dashboards have been imported and re-exported to be on the latest schema. README and install config updated.
a412f95
to
9cf74a1
Compare
@mattdelco |
Generally it's been fragile for there to be multiple ways to build things (it's not uncommon for one way to break in ways that the others don't), so I'd actually find it appealing to use an approach that dissuades doing stuff outside of make. |
I understand that using native |
conclusion ? |
@mattdelco Let me know what you want. I'd like to leave it as-is, to allow easy dashboard adding without editing Makefiles. If the directory copy is not ok, I'll move the dashboards up a dir, and make it a flat directory structure. |
I can live with things either way--just don't create a doc that suggests that people run "docker build" directly. The last I'd heard was that go devs could run "go build" to satisfy the particular needs of themselves, tools, or IDEs, but anything else should be handled via make. |
For a fun different perspective, we do use Dockerfile to build in some places, for instance https://github.com/istio/fortio/blob/master/Dockerfile but shall we / l g t m as is or not ? |
Multi-stage builds for Docker images are really nice. |
Sgtm |
thanks ! there is even a third stage as the binary is later extracted in realease/ to make the linux binary tgz release /lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ldemailly The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
/test all [submit-queue is verifying that this PR is safe to merge] |
Automatic merge from submit-queue. |
@jeffmendoza: The following test failed, say
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
Grafana 5.0 includes a major UI update. Configuration of datasources
and dashboards is easly done via file. Dashboards have been imported
and re-exported to be on the latest schema. README and install config
updated.
See the promo video here.
What's new here.
Screenshot below
