InfluxDB (Database service)

InfluxDB is a time series database optimized for high-write-volume use cases such as logs, sensor data, and real-time analytics.

It exposes an HTTP API for client interaction. See the InfluxDB documentation for more information.

Supported versions 

Grid Dedicated Dedicated Generation 3
  • 1.2
  • 1.3
  • 1.7
  • 1.8
None available Working on it!


The format exposed in the $PLATFORM_RELATIONSHIPS environment variable:

    "service": "influxdb18",
    "ip": "",
    "hostname": "",
    "cluster": "rjify4yjcwxaa-master-7rqtwti",
    "host": "influxdb.internal",
    "rel": "influxdb",
    "scheme": "http",
    "type": "influxdb:1.8",
    "port": 8086

Usage example 

In your .platform/services.yaml:

    type: influxdb:1.8
    disk: 256

In your

    influxtimedb: "timedb:influxdb"

You can then use the service in a configuration file of your application with something like:

// This assumes a fictional application with an array named $settings.
	$relationships = json_decode(base64_decode($relationships), TRUE);

	// For a relationship named 'influxtimedb' referring to one endpoint.
	if (!empty($relationships['influxtimedb'])) {
		foreach ($relationships['influxtimedb'] as $endpoint) {
			$settings['influxdb_host'] = $endpoint['host'];
			$settings['influxdb_port'] = $endpoint['port'];

Exporting data 

InfluxDB includes its own export mechanism. To gain access to the server from your local machine open an SSH tunnel with the CLI:

platform tunnel:open

That opens an SSH tunnel to all services on your current environment and produce output like the following:

SSH tunnel opened on port 30000 to relationship: influxtimedb

The port may vary in your case. Then, simply run InfluxDB’s export commands as desired.

influx_inspect export -compress