Menu
Open source

Configuring Infinity data source plugin

After the plugin is installed, you need to create an instance of the data source:

  1. Go to http://localhost:3000/datasources and select Add data source
  2. Search for the Infinity plugin
  3. Give a name to your datasource
  4. Save.

image

This data source can work out of the box without any additional configuration. If you need the URL to be authenticated or pass additional headers/query/tls/timeout settings, configure the corresponding section.

  • Configuration will be applied to all the queries. If you need different configuration for different queries, create separate instances of the data source.

  • If you configure the URL in the settings, the same will be prefixed along with all your queries.

If you specify the URL as https://example.com/path in your datasource config and /my-endpoint as your url in the query, then the final URL will be https://example.com/path/my-endpoint.

For more information, refer to Configuring URL.

Health check

When you save the Infinity datasource settings in the config page, by default this will just save the settings and will not perform any validation against any URLs. If you want to validate the settings such as authentication or API keys, then you must enable the custom health check in the health check section of the configuration page.

Currently only HTTP GET methods are supported in the custom health check. Also custom health checks only validate the response status code HTTP 200 and doesn’t perform any validation against the response content.

Proxy outgoing requests

If you want your data source to connect via proxy, set the environment appropriate environment variables. HTTP_PROXY, HTTPS_PROXY and NO_PROXY. HTTPS_PROXY takes precedence over HTTP_PROXY for https requests.

proxy support is available from v0.7.10

If you want to setup specific proxy URL for the datasource, you can configure in the datasource config network section.

Proxy URL specification in data source config is available from v2.2.0