Comments (6)
This is how original datasource worked and we did not change it. So the behaviour is correct.
I agree having a way to issue also a /query
request is handy but currently I don't see a way to do so without breaking the original behaviour.
from grafanajsondatasource.
Well then I think this is still no the correct behaviour, but a bug in the original datasource, too. Since the InfluxDB datasource plugin seems to resolve the query correctly:
from grafanajsondatasource.
InfluxDB datasource has AFAIK only one entry via query. We have 5. So it cannot be compared. And people have found use cases for current behaviour (see older issues) so now it's feature anyway.
from grafanajsondatasource.
InfluxDB datasource has AFAIK only one entry via query. We have 5. So it cannot be compared. And people have found use cases for current behaviour (see older issues) so now it's feature anyway.
Not sure this is addressing the core of the question. Imho:
/search retrieves the metrics, /query the data. The query editor's metric selection is wired to findMetrics
:
<div ng-if="!ctrl.target.rawQuery">
<div class="gf-form">
<label class="gf-form-label width-5 query-keyword">Metric</label>
<gf-form-dropdown model="ctrl.target.target"
allow-custom="true"
lookup-text="true"
get-options="ctrl.findMetrics($query)"
on-change="ctrl.onChangeInternal()">
</gf-form-dropdown>
</div>
</div>
The behaviour of query variables is imho controlled by Grafana, not by this plugin, anyway variables are.
So not an issue here but with Grafana.
from grafanajsondatasource.
@andig thanks for your reply. But doesn't this plugin not controll whether the /search
or /query
route is triggered when creating a Query-variable?
from grafanajsondatasource.
Seems like @andig is right. I did a quick check out of curiosity https://github.com/simPod/grafana-json-datasource/search?q=findMetrics&unscoped_q=findMetrics We do not call it explicitly.
from grafanajsondatasource.
Related Issues (20)
- Browser sending requests when Access is set to Server HOT 3
- openapi.yaml needs updating HOT 5
- Who uses the datasource? HOT 5
- Getting error 404 from grafana HOT 1
- Randomly grafana show strange series name in legend HOT 4
- I cant get the desired version number of simpod-json-datasource HOT 1
- Query Variable: if Multi-Value enabled, if in targets payload the query variable is referenced, the whole payload gets deleted HOT 7
- Unknown Payload only shows values of strings HOT 2
- Builder mode add quotes around Query Variable HOT 3
- Requests with params containing ":" character HOT 3
- Using global variables in Payload HOT 6
- Health endpoint not working in Grafana 9.5 HOT 3
- Please migrate to grafana create-plugin
- Grafana 9.5.2 - simpod-json-datasource request targets.data option is a string value instead of array of object HOT 6
- Datasource provisioning - unable to set Forward OAuth Identity and timeout HOT 5
- "Disable query" ignored HOT 2
- Does not work.. ¯\_ (ツ)_/¯ HOT 3
- Builder mode: After selecting a payload option the value is shown instead of the label HOT 4
- How to name graphs / metrics? HOT 3
- Multiple Query Issues HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grafanajsondatasource.