AutohomeCorp / autohome-compareQueries-datasource

This plugin is built as a datasource plugin that comapre and contrasts different time shifts data
MIT License
126 stars 25 forks source link

Plugin deprecated ? #40

Open gaetan29 opened 8 months ago

gaetan29 commented 8 months ago

Hi, I am using Grafana v10.1.5 ... so far, your plugin is working pretty well. But get an alert message regarding future deprecation as follow..

"Angular plugin This data source plugin uses a deprecated, legacy platform based on AngularJS and will stop working in future releases of Grafana."

Will you upgrade your excellent plugin ?

I am using it here: https://www.rvn-dashboard.com:3000/d/RFxvsAvnk/rvn-hd-dashboard?orgId=1&viewPanel=502

Thanks & regards.

gaetan29 commented 8 months ago

https://grafana.com/docs/grafana/latest/developers/angular_deprecation/

Candelax98 commented 5 months ago

+1 here. This plugin is awesome and I would hate it if it stopped working because of the deprecation. Thanks for your kind work

salman-akh commented 3 months ago

Hi the plugin has stopped working with newer version of grafana. Is there any update on the plugin? I hope there is, it has been very handy plugin.

Antartic0 commented 2 months ago

Good morning. Any news about this plugin? I didn´t find any alternative and it´s useful for me the comparison with others timeshifts. Is it on schedule the migration to react?

leoswing commented 3 weeks ago

I'm working on a version with react upgrade support, which codes and function has been test already. The release version will publish to github soon.

leoswing commented 3 weeks ago

Good morning. Any news about this plugin? I didn´t find any alternative and it´s useful for me the comparison with others timeshifts. Is it on schedule the migration to react?

@Antartic0 @salman-akh You could wait for my release version on github with a new repo comes with react support

leoswing commented 3 weeks ago

Good morning. Any news about this plugin? I didn´t find any alternative and it´s useful for me the comparison with others timeshifts. Is it on schedule the migration to react?

@Antartic0 @salman-akh You could wait for my release version on github with a new repo comes with react support

Anyone wish to use the React version could refer to repo: https://github.com/leoswing/autohome-compareQueries-datasource-rc

autohome-compareQueries-datasource-rc is totally written with React, and works well, updates could see the changelog

@gaetan29 @Candelax98 @Antartic0 @salman-akh welcome to use this new version zip files~~

Test passed in Grafana 9.x and 10.4.2

leoswing commented 3 weeks ago

https://github.com/leoswing/autohome-compareQueries-datasource-rc

Hi, @gaetan29 you could use the new repo which has migrate to React~ links as below

https://github.com/leoswing/autohome-compareQueries-datasource-rc

gaetan29 commented 3 weeks ago

Hi, V 1.0.0(2024-06-18) installed on Grafana V10.4.2 and working nicely. Great job !

Question: Shall I upgrade to Grafana V10.4.4 or even V11 ?

Regards

leoswing commented 3 weeks ago

Hi, V 1.0.0(2024-06-18) installed on Grafana V10.4.2 and working nicely. Great job !

Question: Shall I upgrade to Grafana V10.4.4 or even V11 ?

Regards

Hi, I think it depens on your demand. If higher version of grafana could satisfied your funcional needs, that would be fine~

Antartic0 commented 3 weeks ago

Hi, I´ve removed the previous version from /var/lib/grafana/plugins and clone via git to same path but it doesn´t appear when I try to create a new datasource. Do I need another step in the middle? I´ve got the line in grafana.ini also.

gaetan29 commented 3 weeks ago

Here is what I did:

1- I disabled old version in Grafana / Plugins / uninstall 2- I then downloaded the zip file into a temp folder ( wget -c https://github.com/leoswing/autohome-compareQueries-datasource-rc/releases/download/1.0.0/autohome-comparequeries-datasource.zip) 3- I then installed the plugin (sudo grafana-cli --pluginUrl autohome-comparequeries-datasource.zip plugins install autohome-comparequeries-datasource) 4- Finally I restarted Grafana Server (sudo service grafana-server restart)

Rgds

Antartic0 commented 3 weeks ago

Here is what I did:

1- I disabled old version in Grafana / Plugins / uninstall 2- I then downloaded the zip file into a temp folder ( wget -c https://github.com/leoswing/autohome-compareQueries-datasource-rc/releases/download/1.0.0/autohome-comparequeries-datasource.zip) 3- I then installed the plugin (sudo grafana-cli --pluginUrl autohome-comparequeries-datasource.zip plugins install autohome-comparequeries-datasource) 4- Finally I restarted Grafana Server (sudo service grafana-server restart)

Rgds

I´ve tried but It doesn´t work for me now: Error: ✗ failed to convert to plugin DTO: could not find plugin.json or dist/plugin.json for in /var/lib/grafana/plugins/autohome-comparequeries-datasource

Antartic0 commented 3 weeks ago

Now it works. `✔ Downloaded and extracted autohome-comparequeries-datasource v1.0.0 zip successfully to /var/lib/grafana/plugins/autohome-comparequeries-datasource

Please restart Grafana after installing or removing plugins. Refer to Grafana documentation for instructions if necessary.`

But the datasource is not available or I can´t see it. Can be related to the permissions of the plugin. Currently is under root:root but I have other plugin as OCI with grafana user as owner.

Antartic0 commented 3 weeks ago

Now it works. `✔ Downloaded and extracted autohome-comparequeries-datasource v1.0.0 zip successfully to /var/lib/grafana/plugins/autohome-comparequeries-datasource

Please restart Grafana after installing or removing plugins. Refer to Grafana documentation for instructions if necessary.`

But the datasource is not available or I can´t see it. Can be related to the permissions of the plugin. Currently is under root:root but I have other plugin as OCI with grafana user as owner.

It works... finally it´s an issue on rocky linux image with the permissions.

Thnx for the plugin, @leoswing . Great work!

leoswing commented 2 weeks ago

Now it works. ✔ Downloaded and extracted autohome-comparequeries-datasource v1.0.0 zip successfully to /var/lib/grafana/plugins/autohome-comparequeries-datasource Please restart Grafana after installing or removing plugins. Refer to Grafana documentation for instructions if necessary. But the datasource is not available or I can´t see it. Can be related to the permissions of the plugin. Currently is under root:root but I have other plugin as OCI with grafana user as owner.

It works... finally it´s an issue on rocky linux image with the permissions.

Thnx for the plugin, @leoswing . Great work!

@Antartic0 That would be fine if it solved your problem ~ I also encountered some issues due to linux image permissions. And in docker mode for using this plugin, I would do some tricks as below:

The example like docker image with plugin autohome-compareQueries-datasource is as below:

FROM node:14-alpine AS build-stage
WORKDIR /plugins
COPY ./plugins/autohome-comparequeries-datasource.zip autohome-comparequeries-datasource.zip

RUN \
  unzip autohome-comparequeries-datasource.zip && \
  rm -rf autohome-comparequeries-datasource.zip

FROM grafana/grafana:10.4.2

# Disable Login form or not
ENV GF_AUTH_DISABLE_LOGIN_FORM "false"
# Allow anonymous authentication or not
ENV GF_AUTH_ANONYMOUS_ENABLED "false"
# Role of anonymous user
ENV GF_AUTH_ANONYMOUS_ORG_ROLE "Admin"
# Install plugins here our in your own config file
# ENV GF_INSTALL_PLUGINS="<list of plugins seperated by ,"

# Add configuration file
ADD ./grafana.ini /etc/grafana/grafana.ini

RUN chmod -R 755 /var/lib/grafana/plugins/

COPY --from=build-stage /plugins/ /var/lib/grafana/plugins/autohome-comparequeries-datasource
leoswing commented 2 weeks ago

Hi, V 1.0.0(2024-06-18) installed on Grafana V10.4.2 and working nicely. Great job !

Question: Shall I upgrade to Grafana V10.4.4 or even V11 ?

Regards

@gaetan29 @Candelax98 @Antartic0 @salman-akh I've tested on Grafana 11.0.0, and seems this plugin queries does not work, and I've updated the plugin codes to fit with Grafana 11.

Grafana 11 Breaking changes can see query-filtering-changes

You could download the 1.1.0 version to replace the old version 1.0.0

The plugin with version 1.1.0 suit with Grafana 8, 9, 10.x, and the latest 11.0.0 ~

I recommend all of you to upgrade to the 1.1.0 version ~ details can see v1.1.0

Use the 1.1.0 version with the link: https://github.com/leoswing/autohome-compareQueries-datasource-rc/releases/download/1.1.0/autohome-comparequeries-datasource.zip

leoswing commented 2 weeks ago

@gaetan29 @Antartic0 @salman-akh @Candelax98 Hi guys, could you please update your old version with the latest version 1.1.0 ?

https://github.com/leoswing/autohome-compareQueries-datasource-rc/releases/tag/1.1.0

The 1.1.0 version could fix the filterQuery issue, and totally suit with Grafana 11, also Grafana 10.x and 9.x is tested ok.

gaetan29 commented 2 weeks ago

Hi, V 1.1.0 installed and working on V 10.4.2... I haven't yet installed latest version.

That said, it still show as Version 1.0.0 when installing Version 1.1.0 See below:

sudo grafana-cli --pluginUrl autohome-comparequeries-datasource.zip plugins install autohome-comparequeries-datasource ✔ Downloaded and extracted autohome-comparequeries-datasource v1.0.0 zip successfully to /var/lib/grafana/plugins/autohome-comparequeries-datasource

Please restart Grafana after installing or removing plugins. Refer to Grafana documentation for instructions if necessary.

sudo grafana-cli plugins ls autohome-comparequeries-datasource @ 1.0.0

leoswing commented 2 weeks ago

Hi, V 1.1.0 installed and working on V 10.4.2... I haven't yet installed latest version.

That said, it still show as Version 1.0.0 when installing Version 1.1.0 See below:

sudo grafana-cli --pluginUrl autohome-comparequeries-datasource.zip plugins install autohome-comparequeries-datasource ✔ Downloaded and extracted autohome-comparequeries-datasource v1.0.0 zip successfully to /var/lib/grafana/plugins/autohome-comparequeries-datasource

Please restart Grafana after installing or removing plugins. Refer to Grafana documentation for instructions if necessary.

sudo grafana-cli plugins ls autohome-comparequeries-datasource @ 1.0.0

Nice! We hav upgrade Grafana to 11.0.0 and it works well too.

Antartic0 commented 2 weeks ago

I will update shortly because I am working on other project now. Next week I will update because I´ve noted something when I use the plugin to show comparison between 1 day and 1 week ago. It´s like the query I´ve created disappears suddenly and the query appears void.

Thnx!

leoswing commented 2 weeks ago

@gaetan29 @Antartic0 @salman-akh @Candelax98 Hi guys, I feel so sorry about the plugin issue: when reopen dashboard editor mode, the data which binding to the compareQueries plugin lost. I've fix that with the release version 1.2.0

Could you help to use the fix version: https://github.com/leoswing/autohome-compareQueries-datasource-rc/releases/tag/1.2.0

to replace the old version? Much appreciated if you could use the latest version.

Sorry about the issue with binding form~

gaetan29 commented 2 weeks ago

Version 1.2.0 now installed and running.... But it is showing as Version 1.1.0 despite I have loaded your latest version. Screenshot_2024-06-24 10 48 35_mFeYY8

leoswing commented 2 weeks ago

Version 1.2.0 now installed and running.... But it is showing as Version 1.1.0 despite I have loaded your latest version. Screenshot_2024-06-24 10 48 35_mFeYY8

Let me see, I think this due to github action fail, and the version remain the older one.. let me republish the 1.2.0 again.

gaetan29 commented 2 weeks ago

Now sorted, thanks Screenshot_2024-06-24 11 21 48_2qsj50

leoswing commented 2 weeks ago

Version 1.2.0 now installed and running.... But it is showing as Version 1.1.0 despite I have loaded your latest version. Screenshot_2024-06-24 10 48 35_mFeYY8

@gaetan29 Hi , version 1.2.0 is released and upgrade now. see version 1.2.0

Antartic0 commented 2 weeks ago

Is there any way to update without conflicts or the best way to apply an update over this plugin? Thanks in advance

gaetan29 commented 2 weeks ago

I personnaly upgrade that way: 1- sudo grafana-cli plugins remove autohome-comparequeries-datasource 2- sudo service grafana-server restart 3- download the zip plugin on your server (wget -c ...) 4- sudo grafana-cli --pluginUrl autohome-comparequeries-datasource.zip plugins install autohome-comparequeries-datasource 5- sudo service grafana-server restart

leoswing commented 2 weeks ago

For all of all, I've updated the plugin source and release the breaking change version 2.0.0, the changes of version 2.0.0 is as below:

Anyone who upgrades with the version 2.0.0 needs to upgrade the Grafana property:

[plugins]
allow_loading_unsigned_plugins = leoswing-comparequeries-datasource

And anyone use the breaking change 2.0.0, should also upgrade the origin dashboards... and you guys could keep the both

Also you can use GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS env instead for environment variables changed.

leoswing commented 5 days ago

Hi @gaetan29 @Antartic0 @salman-akh @Candelax98 sorry to interrupt you all,

the latest plugin with version 2.0.1 has been signed with public level, and welcome to use this new plugin with id leoswing-comparequeries-datasource.

With this latest 2.0.1 version, we've improved the key features as below:

Plugin details could see the grafana plugins market: https://grafana.com/grafana/plugins/leoswing-comparequeries-datasource/

MisterMartin commented 5 days ago

Thanks so much for upgrading that plugin and getting it signed. It works great!

gaetan29 commented 4 days ago

Thank you, brilliant plugin. V2.0.1 working nicely.

netforce commented 1 day ago

V2.0.1 working fine so far on Grafana v10.4.3