Cover of the book Symfony 5: The Fast Track

Symfony 5: The Fast Track is the best book to learn modern Symfony development, from zero to production. +300 pages in full color showing how to combine Symfony with Docker, APIs, queues & async tasks, Webpack, Single-Page Applications, etc.

Buy printed version

InfluxDB

InfluxDB

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.

To use it in your application, add it to .symfony/services.yaml:

1
2
3
4
influx:
    # supported versions: 1.2, 1.3, 1.7
    type: influxdb:1.7
    disk: 1024

And wire it in .symfony.cloud.yaml:

1
2
relationships:
    timedb: "influx:influxdb"

Environment Variables

The configuration is exposed via the following environment variables (where TIMEDB is the upper-cased version of the key defined in the relationship above):

  • TIMEDB_SCHEME
  • TIMEDB_HOST
  • TIMEDB_PORT
  • TIMEDB_IP

This work, including the code samples, is licensed under a Creative Commons BY-SA 3.0 license.