IBM / ibm-z-oss-hub

Open source software hub for IBM Z
Apache License 2.0
8 stars 2 forks source link

Grafana Infinity plugin not working #163

Open mykael22000 opened 3 weeks ago

mykael22000 commented 3 weeks ago

Image Name and Version Grafana 10.3.1

Describe the bug Went to the Plugins panel and picked the non-bundled Infinity plug-in to install. Installed fine.

When I tried to create a data source using it, Grafana showed error message 'Plugin Unavailable' after I hit Save and Test.

Digging through the logs revealed that the plugin didn't have an s390 executable version.

To Reproduce Steps to reproduce the behavior:

  1. Go to Plugins
  2. Switch the filter to All
  3. Select the Infinity pluging
  4. Choose to install it
  5. Select 'Create a New Datasource' for it
  6. Fill in your details
  7. Hit 'save and test'

Expected behavior What I think has happened, is that Grafana (running on s390) has pulled down the x86 version of the plug-in from the web. I can't find a URL offering an s390 version of the Infinity plug-in, so it may not currently exist.

I think it would be good if the page describing the Grafana port clearly stated that the only supported/working plugins are the ones that are bundled with Grafana by default and had a link to a page with instructions for installing any supported non-standard plugins. I was expecting the Infinity plugin to be available through the s390 version as there is nothing to say that it isn't.

I need the infinity plug in to be able to fetch data from my REST API (running on z/OS), Is it possible we could get an s390 version of the infinity datasource built? It's open source (under an Apache 2.0 license) and is up on GitHub - https://github.com/grafana/grafana-infinity-datasource . As I understand it, it is currently owned/maintained by Grafana Labs. Infinity is an old and very powerful data source, being able to retrieve data from almost any REST API. I think it would be a great addition to the s390 platform, especially as more and more z/OS products start opening up REST APIs.

Many thanks for your time.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

korpx-z commented 3 weeks ago

Hey @mykael22000 - thanks for bringing this to our attention!

I've spent some time looking into this and have ran into a few 'snags' when attempting to port this particular plugin.. I'm not yet confident enough to say definitively whether we'll be able to include this plugin - but it's something we're looking into and I will have an update for you in the coming days.

Also worth mentioning, there is a slightly newer version (10.3.4) of Grafana uploaded to icr if you'd prefer this over 10.3.1.

mykael22000 commented 3 weeks ago

Thanks for the update and taking the time to look into it. Happy to help test anything you do get running.

Don't think there's anything in 10.3.4 that'll affect us over 10.3.1, but we might switch there (or even to 11) once we've got something more complete (or if we need it for Infinity).