Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
devops-workshop
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexander Holt
devops-workshop
Commits
434ffabc
Commit
434ffabc
authored
3 years ago
by
Alexander Holt
Browse files
Options
Downloads
Patches
Plain Diff
Using new version of Influx
parent
0b04a067
No related branches found
No related tags found
No related merge requests found
Pipeline
#156146
passed
3 years ago
Stage: test
Stage: deploy
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
docker-compose-logging.yaml
+9
-4
9 additions, 4 deletions
docker-compose-logging.yaml
glances.conf
+21
-0
21 additions, 0 deletions
glances.conf
runLogging
+1
-2
1 addition, 2 deletions
runLogging
with
31 additions
and
6 deletions
docker-compose-logging.yaml
+
9
−
4
View file @
434ffabc
...
...
@@ -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
This diff is collapsed.
Click to expand it.
glances.conf
+
21
−
0
View file @
434ffabc
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
runLogging
+
1
−
2
View file @
434ffabc
...
...
@@ -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."
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment