cloudspout / cloudspout-button-panel

Grafana panel to integrate with any kind of HTTP/REST API
MIT License
50 stars 35 forks source link

Add possibility to send REST call via Grafana server (like datasources can) #52

Open 1000stSheep opened 3 years ago

1000stSheep commented 3 years ago

Thanks for your work to create that plugin. Really helpful.

As far as i can see, the REST calls are only direct HTTP queries from browser to target server. But sometimes the target server might not be reachable from browser, but only from Grafana server.

Unfortunately this is the case for my scenario (grafana server is dual homed). However queries to the datasources can already be "proxied" via Grafana server (at least InfluxDB).

I would find such a option for your plugin very useful and appreciate such a feature. I think this could be useful for others too.

Using: cloudspout-button-panel 7.0.23 Grafana v7.3.4

haldi4803 commented 2 years ago

I second this!

My usecase is. I wan't to controle a device in my WiFi, but i don't want to make it accessible from outside. But if the command comes from the Grafana server then you would need to login first, from anywhere outside.

fire833 commented 2 years ago

I am working on creating an API proxy plugin to allow for API proxying server-side and hopefully do what you are asking. I think I am going to make the backend plugin separate, but then add to my current PR on this repo to allow for it to call those server-side endpoints so Grafana makes the call instead of the browser.

rodrigovegajaldin commented 2 years ago

@fire833, do you have some news about your plugin??

fire833 commented 2 years ago

Sorry for delay, it is currently done, life has just been in the way and have been unable to publish it yet.

hitec-rthill commented 1 year ago

I have similar issue as already described by the original author and would like to use your button plugin to proof of concept a solution. Do you have already code submitted in a branch that I could use to conduct my PoC. I may also help on this topic for testing and feature changes.

JosiahWhite commented 1 year ago

+1 on this, I am looking to use this button, but I'd like to lock access behind the Grafana instance instead of needing to make it public.

cdiamantis commented 1 year ago

Hello, It's been one year since the last comment. It is stated that this is implemented. Will the build ever land?

otis95 commented 1 year ago

这是来自QQ邮箱的假期自动回复邮件。   您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。

hsyhhssyy commented 8 months ago

Any update on this issue?

otis95 commented 8 months ago

这是来自QQ邮箱的假期自动回复邮件。   您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。