cloudspout / cloudspout-button-panel

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

Integrating variables and ad hoc filters #12

Closed raulsperoni closed 3 years ago

raulsperoni commented 3 years ago

In the editor I allow to add other kind of parameters: "variable parameters" that will be resolved before the request. Also I allow to use the variable notation in the label of the button. "This is the label for $variable"

In the panel I'm resolving the variables configured in the editor: first I look for ad hoc filters then for regular variables like text box variables.

derjust commented 3 years ago

Will have to look at the PR again & rebase as the Plugin moved to the Grafana-Builder API to allow for better cross-version compatibility.

paulfirstimpression commented 3 years ago

Hi! First of all the button panel is a great plugin. I ran into the same thing, you can't use Grafana $variables in payload, header parameter, or URL. @raulsperoni does your fork run on Grafana 7.2?

raulsperoni commented 3 years ago

I will take a look at this, rebase and make other PR