Difference between revisions of "InfluxDB"

From Open Source Controls Wiki
Jump to navigation Jump to search
(Created page with "sss")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
sss
 
<pre>
docker run -d -p 8086:8086 --name influxdb \
      -v influx_data:/var/lib/influxdb2 \
      -v influx_config:/etc/influxdb2 \
      -e DOCKER_INFLUXDB_INIT_MODE=setup \
      -e DOCKER_INFLUXDB_INIT_USERNAME=admin \
      -e DOCKER_INFLUXDB_INIT_PASSWORD=Your_Password \
      -e DOCKER_INFLUXDB_INIT_ORG=heatweb \
      -e DOCKER_INFLUXDB_INIT_BUCKET=heatweb \
      -e DOCKER_INFLUXDB_INIT_RETENTION=1w \
      influxdb:2.0
 
docker exec influxdb influx auth list \
      --user admin \
      --hide-headers | cut -f 3
</pre>[[File:Influxsetup.png]]

Latest revision as of 12:00, 18 September 2022

docker run -d -p 8086:8086 --name influxdb \
      -v influx_data:/var/lib/influxdb2 \
      -v influx_config:/etc/influxdb2 \
      -e DOCKER_INFLUXDB_INIT_MODE=setup \
      -e DOCKER_INFLUXDB_INIT_USERNAME=admin \
      -e DOCKER_INFLUXDB_INIT_PASSWORD=Your_Password \
      -e DOCKER_INFLUXDB_INIT_ORG=heatweb \
      -e DOCKER_INFLUXDB_INIT_BUCKET=heatweb \
      -e DOCKER_INFLUXDB_INIT_RETENTION=1w \
      influxdb:2.0

docker exec influxdb influx auth list \
      --user admin \
      --hide-headers | cut -f 3

Influxsetup.png