Spring InfluxDB auto-configuration
InfluxDB is an open-source time series database optimized for fast, high-availability storage and
retrieval of time series data in fields such as operations monitoring, application metrics, Internetof-
Things sensor data, and real-time analytics.
classpath and the URL of the database is set, as shown in the following example:
spring.influx.url=https://172.0.0.1:8086
If the connection to InfluxDB requires a user and password, you can set the spring.influx.user and
spring.influx.password properties accordingly.
InfluxDB relies on OkHttp. If you need to tune the http client InfluxDB uses behind the scenes, you
can register an InfluxDbOkHttpClientBuilderProvider bean.
retrieval of time series data in fields such as operations monitoring, application metrics, Internetof-
Things sensor data, and real-time analytics.
Connecting to InfluxDB
Spring Boot auto-configures an InfluxDB instance, provided the influxdb-java client is on theclasspath and the URL of the database is set, as shown in the following example:
spring.influx.url=https://172.0.0.1:8086
If the connection to InfluxDB requires a user and password, you can set the spring.influx.user and
spring.influx.password properties accordingly.
InfluxDB relies on OkHttp. If you need to tune the http client InfluxDB uses behind the scenes, you
can register an InfluxDbOkHttpClientBuilderProvider bean.
Comments
Post a Comment