influxdata / influxdata/docs-v2
InfluxDB configuration docs don't mention pointing directly at a file
@kelseiv is already working on this.
Since Aug 3, 2021.
- Dominant language
- JavaScript
- Stars
- 82
- Forks
- 326
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 82
Description
The docs mention that `INFLUXD_CONFIG_PATH` can be set to point at a directory, and the program will look for a `config.*` file within that directory. We also support setting `INFLUXD_CONFIG_PATH` to point directly at a config file with one of our supported extensions, i.e. you could do:
```bash
export INFLUXD_CONFIG_PATH=/path/to/custom/config/directory/config.json
```
The program assumes that any `INFLUXD_CONFIG_PATH` ending with `.json`, `.toml`, `.yaml`, or `.yml` is a file, and any other value is a directory. If the program fails to find a config file at `INFLUXD_CONFIG_PATH`, default config will be used.
##### Relevant URLs
- https://docs.influxdata.com/influxdb/v2.0/reference/config-options/#influxdb-configuration-file
- influxdata/influxdb#20696
##### What products and version are you using?
InfluxDB OSS 2.x
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.