Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-configure client from configuration file #34

Closed
bednar opened this issue Jun 21, 2019 · 0 comments · Fixed by #36
Closed

Auto-configure client from configuration file #34

bednar opened this issue Jun 21, 2019 · 0 comments · Fixed by #36
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@bednar
Copy link
Contributor

bednar commented Jun 21, 2019

InfluxDBClient loads the influx2.properties file automatically from the project classpath.
All you have to do is to create a new file under the src/main/resources directory:

influx2.url=http://localhost:9999
influx2.org=my-org
influx2.bucket=my-bucket
influx2.token=my-token
influx2.logLevel=BODY
influx2.readTimeout=5s
influx2.writeTimeout=10s
influx2.connectTimeout=5s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant