Influxdb configuration: Difference between revisions

From wikinotes
Line 21: Line 21:
<blockquote>
<blockquote>
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
 
INFLUXD_CONFIG_PATH  # specify alt influxdb config
</syntaxhighlight>
</syntaxhighlight>
</blockquote><!-- Environment Variables -->
</blockquote><!-- Environment Variables -->

Revision as of 17:35, 16 April 2023

Documentation

influx config (cli) https://docs.influxdata.com/influxdb/v2.7/reference/cli/influx/config/
config locations by platform https://docs.influxdata.com/influxdb/v2.7/reference/cli/influx/config/create/

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 = true

You can manipulate this config with

influx config  # display config
influx config create
influx config list
influx config set