Skip to content
Snippets Groups Projects
Commit 434ffabc authored by Alexander Holt's avatar Alexander Holt
Browse files

Using new version of Influx

parent 0b04a067
No related branches found
No related tags found
No related merge requests found
Pipeline #156146 passed
......@@ -7,12 +7,17 @@ services:
restart: always
ports:
- 3000:3000
influxdb:
image: influxdb:1.7
image: influxdb
restart: always
environment:
INFLUXDB_DB: glances
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_USERNAME=admin
- DOCKER_INFLUXDB_INIT_PASSWORD=adminadmin
- DOCKER_INFLUXDB_INIT_ORG=ntnu
- DOCKER_INFLUXDB_INIT_BUCKET=glances
- DOCKER_INFLUXDB_INIT_RETENTION=1w
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=randomTokenValue
ports:
- 8086:8086
......@@ -353,6 +353,27 @@ prefix=localhost
# You can also use dynamic values
#tags=system:`uname -s`
[influxdb2]
# NOTE: localhost will NOT work here!
host=INSERT_IP_TO_VM_HERE
port=8086
protocol=http
org=ntnu
bucket=glances
token=randomTokenValue
# Prefix will be added for all measurement name
# Ex: prefix=foo
# => foo.cpu
# => foo.mem
# You can also use dynamic values
#prefix=foo
# Followings tags will be added for all measurements
# You can also use dynamic values.
# Note: hostname is always added as a tag
#tags=foo:bar,spam:eggs,domain:`domainname`
[cassandra]
# Configuration for the --export cassandra option
# Also works for the ScyllaDB
......
......@@ -7,6 +7,5 @@ fi
clear
echo "Starting logsystem..."
sudo -u $SUDO_USER touch ~/warnings.txt # Run as normal user, so the file is created in the right home directory
glances -C glances.conf --export influxdb -q &
glances -C glances.conf --export influxdb2 -q &
echo "Done."
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment