meln5674 / grafana-mongodb-community-plugin

Open Source Grafana Plugin for querying MongoDB
GNU Affero General Public License v3.0
137 stars 18 forks source link

An unexpected error happened #18

Closed ddoice closed 1 year ago

ddoice commented 1 year ago

Hi there!

I'm trying to use this great plugin with no luck, as soon as I try to use it as a data source this error appeears on the UI:

image

Do you have any idea why this might happen?

meln5674 commented 1 year ago

Grafana 6.X is quite old at this point (more than 3 years), and I know somewhere in there Grafana re-wrote their plugin framework, so its entirely possible that the newer plugin framework isn't compatible with older versions. The integration tests are run against the latest stable version line (9.X), but I will see if I can get it running against older versions as well.

meln5674 commented 1 year ago

After having done some digging, I regret to inform you that this plugin is, in fact, incompatible with Grafana 6. In Grafana 7, the version of React.js was upgraded from the legacy version that used plain JavaScript to the modern version that uses TypeScript. Further, the plugin uses UI components that were added in Grafana 9. If you wish to use this plugin, you will need to upgrade your Grafana installation.

ddoice commented 1 year ago

I really appreciate it! I will try to upgrade Grafana.