iilaw
July 19, 2022, 1:28pm
1
Hi I want to test the new Canvas panel & in particular the feature in the vid below.
I’m testing using my account on grafana.net the panel isn’t listed but does appear in search stating it’s included. Does this have to be enabled in settings?
Canvas panel - Native Plugin
The Canvas Panel is included with Grafana.
// vid
grafana:main
← grafana:canvas-add-button-and-onClick-support
opened 04:35AM - 17 Dec 21 UTC
<!--
Thank you for sending a pull request! Here are some tips:
1. If this … is your first time, please read our contribution guide at https://github.com/grafana/grafana/blob/main/CONTRIBUTING.md
2. Ensure you include and run the appropriate tests as part of your Pull Request.
3. In a new feature or configuration option, an update to the documentation is necessary. Everything related to the documentation is under the docs folder in the root of the repository.
4. If the Pull Request is a work in progress, make use of GitHub's "Draft PR" feature and mark it as such.
5. If you can not merge your Pull Request due to a merge conflict, Rebase it. This gets it in sync with the main branch.
6. Name your PR as "<FeatureArea>: Describe your change", e.g. Alerting: Prevent race condition. If it's a fix or feature relevant for the changelog describe the user impact in the title. The PR title is used to auto-generate the changelog for issues marked with the "add to changelog" label.
-->
**What this PR does / why we need it**:
Add button element to canvas panel and also add APIEditor that allows user to provide a POST API request (endpoint / data) for onClick functionality of buttons / icons in canvas panel. These changes were created as part of December 2021 Hackathon project.
https://user-images.githubusercontent.com/22381771/146489279-87341b95-4e66-40d9-8c77-fb6f91f51c6e.mov
**Which issue(s) this PR fixes**:
<!--
- Automatically closes linked issue when the Pull Request is merged.
Usage: "Fixes #<issue number>", or "Fixes (paste link of issue)"
-->
Fixes #43237
Thanks
Hi @iilaw welcome to the community
This panel is basically alpha based i.e. still room for improvement.
You can use this plugin by enabling the line;
enable_alpha = true
As described in;
Let me know if this helps.
1 Like
iilaw
July 27, 2022, 9:02am
3
Many thanks for taking the time to replay.
I run hosted Grafana so will have to wait for the beta as I can’t modify settings.
1 Like