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
...@@ -9,10 +9,15 @@ services: ...@@ -9,10 +9,15 @@ services:
- 3000:3000 - 3000:3000
influxdb: influxdb:
image: influxdb:1.7 image: influxdb
restart: always restart: always
environment: 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: ports:
- 8086:8086 - 8086:8086
...@@ -353,6 +353,27 @@ prefix=localhost ...@@ -353,6 +353,27 @@ prefix=localhost
# You can also use dynamic values # You can also use dynamic values
#tags=system:`uname -s` #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] [cassandra]
# Configuration for the --export cassandra option # Configuration for the --export cassandra option
# Also works for the ScyllaDB # Also works for the ScyllaDB
......
...@@ -7,6 +7,5 @@ fi ...@@ -7,6 +7,5 @@ fi
clear clear
echo "Starting logsystem..." 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 influxdb2 -q &
glances -C glances.conf --export influxdb -q &
echo "Done." echo "Done."
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment