Skip to content

Commit

Permalink
finnishing up monitor.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pipech committed Jul 26, 2018
1 parent e791481 commit 076ef84
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion docs/setup_monitoring.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@ permalink: /setup_monitoring/
setup aws key and secret key on ./production_setup/conf/prometheus-conf/prometheus.yml
if you're not using aws you colud setup node-exporter using node-exporter docker image

* Setup frontend rules in monitor.yml

`- "traefik.frontend.rule=Host:graf.example1.com"`

* Start docker stack

`docker stack deploy -c monitor.yml <stack_name>`
`docker stack deploy -c monitor.yml <stack_name>`

* Login

Username: admin
Password: admin
2 changes: 1 addition & 1 deletion production_setup/monitor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ services:
- /var/lib/docker/:/var/lib/docker:ro
# Fixed for "Failed to start container manager: inotify_add_watch /sys/fs/cgroup/cpuset: no such file or directory"
# https://github.com/google/cadvisor/issues/1850
- /cgroup:/sys/fs/cgroup:ro
# - /cgroup:/sys/fs/cgroup:ro
command:
- '--port=8484'
networks:
Expand Down

0 comments on commit 076ef84

Please sign in to comment.