-
Notifications
You must be signed in to change notification settings - Fork 25
Add prefix code to add to all requests #48
Comments
Hello Tristan, Sure! It's called "Execution constants" in the data source and you can put whatever you need in it. Here is an example on how we use it :
|
Hi ! Example: Variable
In your panel query:
|
Yes but this doesn't fix Tristan issue here, as he still have to call the Macro in each of its scripts to be executed :/ |
Indeed using a macro and calling it everywhere could help factorize a bit the code. If it were executed directly, it would be even simpler :) But thinking again about this problem, for us, having this "script header" in the datasource would not be so great: we have 3 different data sources, and they are in an organization where datasource modification is complicated. The most logical would be to have this code common to all panels of a dashboard, but I guess Grafana doesn't allow that. |
Hello,
It is possible to set variables in the warp10 data source that are available in all requests.
But it would be even better to be able to add any code (not just a variable) that would be inserted in all requests. For example I could add one line to raise the quota of number of points that can be fetched.
The text was updated successfully, but these errors were encountered: