Influxdb configuration: Difference between revisions
From wikinotes
No edit summary |
|||
(6 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
| influx-config cli || https://docs.influxdata.com/influxdb/v2.7/reference/cli/influx/config/ | | config options || https://docs.influxdata.com/influxdb/v2.7/reference/config-options/#configuration-options | ||
|- | |||
| config locations by platform || https://docs.influxdata.com/influxdb/v2.7/reference/cli/influx/config/create/ | |||
|- | |||
| <code>influx config</code> (cli) || https://docs.influxdata.com/influxdb/v2.7/reference/cli/influx/config/ | |||
|- | |- | ||
|} | |} | ||
Line 12: | Line 16: | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
| <code>/etc/influx2/influx-configs</code> || config | | <code>/etc/influx2/influx-configs</code><br><code>$PWD/config.{yml,json,toml} || config | ||
|- | |- | ||
|} | |} | ||
Line 20: | Line 24: | ||
<blockquote> | <blockquote> | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
INFLUXD_CONFIG_PATH # specify alt influxdb config | |||
</syntaxhighlight> | </syntaxhighlight> | ||
</blockquote><!-- Environment Variables --> | </blockquote><!-- Environment Variables --> | ||
Line 35: | Line 39: | ||
org = "org" | org = "org" | ||
active = true | active = true | ||
</syntaxhighlight> | |||
You can manipulate this config with | |||
<syntaxhighlight lang="bash"> | |||
influx config # display config | |||
influx config create | |||
influx config list | |||
influx config set | |||
</syntaxhighlight> | </syntaxhighlight> | ||
</blockquote><!-- /etc/influx2/influx-configs --> | </blockquote><!-- /etc/influx2/influx-configs --> | ||
</blockquote><!-- Files --> | </blockquote><!-- Files --> |
Latest revision as of 17:37, 16 April 2023
Documentation
config options https://docs.influxdata.com/influxdb/v2.7/reference/config-options/#configuration-options config locations by platform https://docs.influxdata.com/influxdb/v2.7/reference/cli/influx/config/create/ influx config
(cli)https://docs.influxdata.com/influxdb/v2.7/reference/cli/influx/config/
Locations
/etc/influx2/influx-configs
$PWD/config.{yml,json,toml}
config
Environment Variables
INFLUXD_CONFIG_PATH # specify alt influxdb config
Files
influx-configs
The main influxdb config
[default] url = "http://localhost:8086" token = "token" org = "org" active = trueYou can manipulate this config with
influx config # display config influx config create influx config list influx config set