You can enter any URL in the query URL field. URL should be a valid json / csv / graphql / xml / html endpoint.
In the query editor, click the expand icon next the URL field to configure more query URL options like HTTP Method (GET/POST), additional headers and additional query strings.
Leave the URL in the datasource configuration blank. URL in the datasource config is now deprecated. Use URL in the query editor instead.
Variables in URL
In the query URL, you can use any grafana global variables or any dashboard variables this includes from and to timestamps of the dashboard
Secure keys in the URL query strings
In some cases, you may need to pass the secure API keys as part of your URL. Hard-coding them in the panel is not secure. You can configure those secure keys in the datasource settings.
You can also use Api key authentication for this purpose.
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 : Go-http-client/1.1 will be set for all requests and
Content-Type : application/json. You can override these headers in the datasource configuration page.
Note: We suggest adding secure headers only via configuration and not in query.
Leaving blank will allow all the hosts. This is by default.
If your datasource needs to allow only certain hosts, Configure the allowed host names in the config. There can be multiple hosts allowed. Host names are case sensitive and needs to be full host name. Example :