ertis-research / grafana-panel-unity

Apache License 2.0
4 stars 0 forks source link

Unity Panel not working in Grafana #1

Open YuktarthTrehan13 opened 1 month ago

YuktarthTrehan13 commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

Hi Julia,

Thank you for reaching out. We've tried your suggestion of adding ertis-unity-panel in allow unsigned plugins, but the issue still persists. Also, to answer your question, we've tried it in both versions of grafana: v10.2.3 and v10.4.2

We would like to explore this plugin so any suggestions to solve the above issue, would be greatly appreciated.

Thanks & Regards, Yuktarth Trehan


From: Julia Robles @.> Sent: Tuesday, May 7, 2024 5:19 PM To: ertis-research/grafana-panel-unity @.> Cc: Yuktarth Trehan @.>; Author @.> Subject: Re: [ertis-research/grafana-panel-unity] Unity Panel not working in Grafana (Issue #1)

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_pluginshttps://grafana.com/docs/grafana/latest/setup-grafana/configure-grafana/#allow_loading_unsigned_plugins field of the grafana.ini. Herehttps://github.com/ertis-research/Helm-charts/blob/main/OpenTwins/values.yaml#L214 you have an example of how it would look like using the Helm installation.

Regards :)

— Reply to this email directly, view it on GitHubhttps://github.com/ertis-research/grafana-panel-unity/issues/1#issuecomment-2098218662, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BIKKRE4SFMFMWDJ3NQARDILZBC5TLAVCNFSM6AAAAABHKIZVESVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJYGIYTQNRWGI. You are receiving this because you authored the thread.Message ID: @.***>

YuktarthTrehan13 commented 1 month ago

Hi Julia,

Hope you are well. Please let me know if you have any suggestions to resolve the issue that we are having. Waiting for your response.

Regards, Yuktarth Trehan


From: Yuktarth Trehan @.> Sent: Wednesday, May 8, 2024 10:04 AM To: ertis-research/grafana-panel-unity @.>; ertis-research/grafana-panel-unity @.> Cc: Author @.>; Anup Sharma @.>; Deep K @.> Subject: Re: [ertis-research/grafana-panel-unity] Unity Panel not working in Grafana (Issue #1)

Hi Julia,

Thank you for reaching out. We've tried your suggestion of adding ertis-unity-panel in allow unsigned plugins, but the issue still persists. Also, to answer your question, we've tried it in both versions of grafana: v10.2.3 and v10.4.2

We would like to explore this plugin so any suggestions to solve the above issue, would be greatly appreciated.

Thanks & Regards, Yuktarth Trehan


From: Julia Robles @.> Sent: Tuesday, May 7, 2024 5:19 PM To: ertis-research/grafana-panel-unity @.> Cc: Yuktarth Trehan @.>; Author @.> Subject: Re: [ertis-research/grafana-panel-unity] Unity Panel not working in Grafana (Issue #1)

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_pluginshttps://grafana.com/docs/grafana/latest/setup-grafana/configure-grafana/#allow_loading_unsigned_plugins field of the grafana.ini. Herehttps://github.com/ertis-research/Helm-charts/blob/main/OpenTwins/values.yaml#L214 you have an example of how it would look like using the Helm installation.

Regards :)

— Reply to this email directly, view it on GitHubhttps://github.com/ertis-research/grafana-panel-unity/issues/1#issuecomment-2098218662, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BIKKRE4SFMFMWDJ3NQARDILZBC5TLAVCNFSM6AAAAABHKIZVESVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJYGIYTQNRWGI. You are receiving this because you authored the thread.Message ID: @.***>

juliarobles commented 1 month ago

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 commented 1 month ago

Hi,

Thank you for your response. I have tried your suggestions but the issue still persists. If possible, can you show screenshots of the steps you are doing? Also, what is the data source you are using to paste the unity files?

Regards, Yuktarth Trehan


From: Julia Robles @.> Sent: Monday, May 13, 2024 1:38 PM To: ertis-research/grafana-panel-unity @.> Cc: Yuktarth Trehan @.>; Author @.> Subject: Re: [ertis-research/grafana-panel-unity] Unity Panel not working in Grafana (Issue #1)

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 releasehttps://github.com/ertis-research/grafana-panel-unity/releases/tag/latest, 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 modehttps://grafana.com/docs/grafana/latest/setup-grafana/configure-grafana/#app_mode or change the default plugin folderhttps://grafana.com/docs/grafana/latest/setup-grafana/configure-grafana/#plugins to another one.

Let me know if any of that works for you.

Regards :)

— Reply to this email directly, view it on GitHubhttps://github.com/ertis-research/grafana-panel-unity/issues/1#issuecomment-2106915818, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BIKKRE5DYZZO366AMSNMFX3ZCBYIDAVCNFSM6AAAAABHKIZVESVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBWHEYTKOBRHA. You are receiving this because you authored the thread.

juliarobles commented 1 month ago

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 commented 1 month ago

Hi,

I have installed grafana directly from the web, on my windows system.


From: Julia Robles @.> Sent: Monday, May 13, 2024 4:27 PM To: ertis-research/grafana-panel-unity @.> Cc: Yuktarth Trehan @.>; Author @.> Subject: Re: [ertis-research/grafana-panel-unity] Unity Panel not working in Grafana (Issue #1)

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 initContainerhttps://github.com/ertis-research/Helm-charts/blob/main/OpenTwins/values.yaml#L232.

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.png (view on web)https://github.com/ertis-research/grafana-panel-unity/assets/48439828/72641960-da8f-4ef2-b40d-eff9edb2feb3 image.png (view on web)https://github.com/ertis-research/grafana-panel-unity/assets/48439828/4454d6cd-8d4d-4180-856d-49511e5f489a

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

— Reply to this email directly, view it on GitHubhttps://github.com/ertis-research/grafana-panel-unity/issues/1#issuecomment-2107266835, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BIKKRE7UZX25SCH7ULXFE3DZCCMAHAVCNFSM6AAAAABHKIZVESVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBXGI3DMOBTGU. You are receiving this because you authored the thread.Message ID: @.***>

YuktarthTrehan13 commented 1 month ago

Hi,

This is the error that is being displayed on the UI:

A Status: 500. Message: Get "query?db=&epoch=ms&q=SELECT++FROM+%22%22+WHERE+time+%3E%3D+1715578572318ms+and+time+%3C%3D+1715600172318ms": unsupported protocol scheme ""


From: Julia Robles @.> Sent: Monday, May 13, 2024 4:27 PM To: ertis-research/grafana-panel-unity @.> Cc: Yuktarth Trehan @.>; Author @.> Subject: Re: [ertis-research/grafana-panel-unity] Unity Panel not working in Grafana (Issue #1)

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 initContainerhttps://github.com/ertis-research/Helm-charts/blob/main/OpenTwins/values.yaml#L232.

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.png (view on web)https://github.com/ertis-research/grafana-panel-unity/assets/48439828/72641960-da8f-4ef2-b40d-eff9edb2feb3 image.png (view on web)https://github.com/ertis-research/grafana-panel-unity/assets/48439828/4454d6cd-8d4d-4180-856d-49511e5f489a

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

— Reply to this email directly, view it on GitHubhttps://github.com/ertis-research/grafana-panel-unity/issues/1#issuecomment-2107266835, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BIKKRE7UZX25SCH7ULXFE3DZCCMAHAVCNFSM6AAAAABHKIZVESVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBXGI3DMOBTGU. You are receiving this because you authored the thread.Message ID: @.***>

YuktarthTrehan13 commented 1 month ago

Hi Julia,

Hope you're well. We have been constantly trying to resolve this issue, but we are unable to. Please let us know if we are missing out somewhere. Also, it would be really helpful if you can spare some time to arrange a call so the issue can be resolved.

Thanks and Regards, Yuktarth Trehan


From: Yuktarth Trehan @.> Sent: Monday, May 13, 2024 5:07 PM To: ertis-research/grafana-panel-unity @.>; ertis-research/grafana-panel-unity @.> Cc: Author @.> Subject: Re: [ertis-research/grafana-panel-unity] Unity Panel not working in Grafana (Issue #1)

Hi,

This is the error that is being displayed on the UI:

A Status: 500. Message: Get "query?db=&epoch=ms&q=SELECT++FROM+%22%22+WHERE+time+%3E%3D+1715578572318ms+and+time+%3C%3D+1715600172318ms": unsupported protocol scheme ""


From: Julia Robles @.> Sent: Monday, May 13, 2024 4:27 PM To: ertis-research/grafana-panel-unity @.> Cc: Yuktarth Trehan @.>; Author @.> Subject: Re: [ertis-research/grafana-panel-unity] Unity Panel not working in Grafana (Issue #1)

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 initContainerhttps://github.com/ertis-research/Helm-charts/blob/main/OpenTwins/values.yaml#L232.

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.png (view on web)https://github.com/ertis-research/grafana-panel-unity/assets/48439828/72641960-da8f-4ef2-b40d-eff9edb2feb3 image.png (view on web)https://github.com/ertis-research/grafana-panel-unity/assets/48439828/4454d6cd-8d4d-4180-856d-49511e5f489a

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

— Reply to this email directly, view it on GitHubhttps://github.com/ertis-research/grafana-panel-unity/issues/1#issuecomment-2107266835, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BIKKRE7UZX25SCH7ULXFE3DZCCMAHAVCNFSM6AAAAABHKIZVESVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBXGI3DMOBTGU. You are receiving this because you authored the thread.Message ID: @.***>