Difference between revisions of "Influxdb v2"

From UVOO Tech Wiki
Jump to navigation Jump to search
(Created page with "https://docs.influxdata.com/influxdb/v2.2/tools/grafana/")
 
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
https://docs.influxdata.com/influxdb/v2.2/tools/grafana/
 
https://docs.influxdata.com/influxdb/v2.2/tools/grafana/
 +
 +
 +
# backup restore
 +
 +
```
 +
influx backup --org archive --bucket loadtesting/autogen --host https://infuxdb.src.io:8086/  --token <MYADMINTOKEN> backups/archive-loadtesting
 +
```
 +
 +
```
 +
influx restore --org archive --bucket loadtesting/autogen --host https://influxdb.dst.io:8086/ --token <MYADMINTOKEN> backups/archive-loadtesting
 +
```
 +
 +
# NGINX Size
 +
```
 +
annotations:
 +
    nginx.ingress.kubernetes.io/proxy-body-size: "1g/100m"
 +
```
 +
 +
# More Notes
 +
 +
```
 +
# Syntax
 +
influx backup <backup-path> -t <root-token>
 +
 +
# Example
 +
influx backup \
 +
  path/to/backup_$(date '+%Y-%m-%d_%H-%M') \
 +
  -t xXXXX0xXX0xxX0xx_x0XxXxXXXxxXX0XXX0XXxXxX0XxxxXX0Xx0xx==
 +
```
 +
- https://docs.influxdata.com/influxdb/v2.4/backup-restore/restore/#restore-all-time-series-data
 +
 +
 +
```
 +
docker run -p 8086:8086 \
 +
  -v $PWD/influxdb:/var/lib/influxdb \
 +
  -v $PWD/influxdb.conf:/etc/influxdb/influxdb.conf:ro \
 +
  -v $PWD/influxdb2:/var/lib/influxdb2 \
 +
  -e DOCKER_INFLUXDB_INIT_MODE=upgrade \
 +
  -e DOCKER_INFLUXDB_INIT_USERNAME=myuser \
 +
  -e DOCKER_INFLUXDB_INIT_PASSWORD=mypassword123 \
 +
  -e DOCKER_INFLUXDB_INIT_ORG=myorg \
 +
  -e DOCKER_INFLUXDB_INIT_BUCKET=mybucket \
 +
  influxdb:2.2
 +
```

Latest revision as of 06:41, 10 September 2022

https://docs.influxdata.com/influxdb/v2.2/tools/grafana/

backup restore

influx backup --org archive --bucket loadtesting/autogen --host https://infuxdb.src.io:8086/  --token <MYADMINTOKEN> backups/archive-loadtesting
influx restore --org archive --bucket loadtesting/autogen --host https://influxdb.dst.io:8086/ --token <MYADMINTOKEN> backups/archive-loadtesting

NGINX Size

 annotations:
    nginx.ingress.kubernetes.io/proxy-body-size: "1g/100m"

More Notes

# Syntax
influx backup <backup-path> -t <root-token>

# Example
influx backup \
  path/to/backup_$(date '+%Y-%m-%d_%H-%M') \
  -t xXXXX0xXX0xxX0xx_x0XxXxXXXxxXX0XXX0XXxXxX0XxxxXX0Xx0xx==
docker run -p 8086:8086 \
  -v $PWD/influxdb:/var/lib/influxdb \
  -v $PWD/influxdb.conf:/etc/influxdb/influxdb.conf:ro \
  -v $PWD/influxdb2:/var/lib/influxdb2 \
  -e DOCKER_INFLUXDB_INIT_MODE=upgrade \
  -e DOCKER_INFLUXDB_INIT_USERNAME=myuser \
  -e DOCKER_INFLUXDB_INIT_PASSWORD=mypassword123 \
  -e DOCKER_INFLUXDB_INIT_ORG=myorg \
  -e DOCKER_INFLUXDB_INIT_BUCKET=mybucket \
  influxdb:2.2