influxdata / influxdata/docs-v2

InfluxDB configuration docs don't mention pointing directly at a file

Open
#2,147 0 comments 0 reactions 1 assignee View on GitHub

@kelseiv is already working on this.

Since Aug 3, 2021.

InfluxDB v2 product:v2
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.