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

Unity Panel not working in Grafana #1

Open
YuktarthTrehan13 opened this issue May 7, 2024 · 9 comments
Open

Unity Panel not working in Grafana #1

YuktarthTrehan13 opened this issue May 7, 2024 · 9 comments

Comments

@YuktarthTrehan13
Copy link

Hi Team. We've been trying to use your Unity Plugin in Grafana. The installation of the plugin was fine, but there's no surety that the plugin is fully developed. Please find the error below, along with the error image attached, for your reference:

Unity Plugin Error

logger=local.finder t=2024-05-06T14:09:53.5001337+05:30 level=debug msg="Loading plugin" path="C:\Program Files\GrafanaLabs\grafana\data\plugins\unity-plugin-for-grafana\dist\plugin.json"
logger=plugin.loader source=external t=2024-05-06T14:09:53.5001337+05:30 level=debug msg="Plugin source loaded, though no plugins were found"

@juliarobles
Copy link
Member

Hi,

What version of Grafana are you using? At the moment we haven't signed the plugin, maybe that's the problem. To use it you need to include its identifier in the allow_loading_unsigned_plugins field of the grafana.ini. Here you have an example of how it would look like using the Helm installation.

Regards :)

@YuktarthTrehan13
Copy link
Author

YuktarthTrehan13 commented May 8, 2024 via email

@YuktarthTrehan13
Copy link
Author

YuktarthTrehan13 commented May 13, 2024 via email

@juliarobles
Copy link
Member

Hi,

I really don't know why this happens to you. We haven't tested it yet with version 10 of grafana (we use 9.5.1), but I just tested it and with version 10.4.2 it works correctly.

Maybe the problem is when installing the plugin. Instead of using the yarn build you can unzip the zip file in the release, which is already compiled and we know it works. Add this to the plugin folder that you have configured in Grafana. It is very important that in the plugins folder the plugin code is directly inside a folder with the name "ertis-unity-panel". If not, Grafana will not be able to understand it, although I am surprised that it appears in the list of plugins.

If it doesn't work, you can also try to put Grafana in development mode or change the default plugin folder to another one.

Let me know if any of that works for you.

Regards :)

@YuktarthTrehan13
Copy link
Author

YuktarthTrehan13 commented May 13, 2024 via email

@juliarobles
Copy link
Member

How did you install Grafana? Helm? Docker? on which operating system? We just unzip the file in the plugins folder and add its identifier in the grafana.ini. In our platform you can see how we install it using an initContainer.

Unity files are not collected by datasource yet. Right now you have to add it to the Grafana public folder inside the “unitybuild” directory (public/unitybuild). If the “unitybuild” folder does not exist, it must be created first. Here you have to add a folder with any name and the 4 files that Unity generates in WebGL (all must have the same name, even if they have different extensions). Then, in the panel configuration you have to put the name of the folder that contains the unity files and the name of the files.

For example, here the name of the folder would be "pivot" and of the files "pivot-3d":
image
image

Anyway, your error seems to be an installation error, but I need more information about the environment and how you have installed it.

@YuktarthTrehan13
Copy link
Author

YuktarthTrehan13 commented May 13, 2024 via email

@YuktarthTrehan13
Copy link
Author

YuktarthTrehan13 commented May 13, 2024 via email

@YuktarthTrehan13
Copy link
Author

YuktarthTrehan13 commented May 21, 2024 via email

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

No branches or pull requests

2 participants