Menu

Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.

Open source Enterprise

Configuring Infinity data source plugin

Once the plugin installed, you need to create an instance of the datasource. To create an instance follow the steps

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

image

This datasource 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 instance of infinity datasource

  • 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

More details about the URL and related settings can be found in url page

Health check

When you save the infinity datasource settings in the config page, By default this will just save the settings and won’t perform any validation against any URLs. If you want to validate the settings such as authentication, api keys, then you must enable 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 datasource 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 datasource config is available from v2.2.0