Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
068f904f
Commit
068f904f
authored
Jun 05, 2017
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish "Document InfluxDB support"
Closes gh-9404
parent
0ee50484
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
21 deletions
+15
-21
spring-boot-features.adoc
spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
+15
-21
No files found.
spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
View file @
068f904f
...
...
@@ -4015,37 +4015,31 @@ validation altogether using the `spring.ldap.embedded.validation.enabled` proper
you have custom attributes, you can use `spring.ldap.embedded.validation.schema` to define
your custom attribute types or object classes.
[[boot-features-influxdb]]
=== InfluxDB
https://www.influxdata.com/[InfluxDB] is an open-source time series database developed by InfluxData.
It is written in Go and optimized for fast, high-availability storage and retrieval of time series data in fields such
as operations monitoring, application metrics, Internet of Things sensor data, and real-time analytics.
It also has support for processing data from Graphite.
https://www.influxdata.com/[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, Internet of Things sensor data, and real-time
analytics.
[[boot-features-connecting-to-influxdb]]
==== Connecting to InfluxDB
You can inject an auto-configured `org.influxdb.InfluxDB` to access InfluxDB databases. You must specify your InfluxDB server url,
there is no default url.
Spring Boot auto-configures an `InfluxDB` instance as long as the `influxdb-java` client
is on the classpath and the url of the database is set:
[source,java,indent=0]
[source,properties,indent=0]
----
spring.influx.url=http://172.0.0.1:8086
----
@Component
public class MyBean {
private InfluxDB influxDB;
@Autowired
public MyBean(InfluxDB influxDB) {
this.influxDB = influxDB;
}
// ...
If the connection to InfluxDB requires a user and password, you can set the
`spring.influx.user` and `spring.influx.password` properties accordingly.
}
----
You can set `spring.influx.client.url` property to change the URL. If the connection to InfluxDB require user and password,
you can set `spring.influx.client.user` property and `spring.influx.client.password` property to change them.
[[boot-features-caching]]
== Caching
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment