Could you expound? there should 0 difference in behavior
Which one is which? you have pasted 2 images but cant be sure which one is json and which one is UQL. Also please share the config you used?
first one is json, second one is UQL.
which config?
grafana.ini?
The infinity configuration.
where are you setting the values api_key, logs and search?
Allright!
I finally have an answer to the UQL query.
I added the ‘Content-Type: application/json’ manualy in the headers and it finaly gave me the answer I wanted!
so you must be using query parameters. because this is what the docu says
Headers in the URL
You can configure the headers required for the URL in the datasource config and also in the query headers. By default infinity datasource automatically sets two headers. Header User-Agent : Grafana will be set for all requests and Content-Type : application/json. You can override these headers in the datasource configuration page.
This is what I get when using URL parameter
###############
Curl Command
###############
curl -X ‘GET’ -H ‘Content-Type: application/json’ ‘https://jsonplaceholder.typicode.com/users?api_key=xxxxxxxx&logs=xxxxxxxx&search=xxxxxxxx’
If you use this then you will have to manually provide ‘Content-Type: application/json’
I think the object returned is no longer the same so the UQL might not be working. save and close. go to another dashboard refresh and go back to this dashboard.
@yosiasz was right. You need to set the api key as url param in config. Delete the api key in the query body. That should work. Your last screenshot says you are still using it as body.










