diff --git a/docs/setup_monitoring.md b/docs/setup_monitoring.md index fe17f8b..ffdfc2c 100644 --- a/docs/setup_monitoring.md +++ b/docs/setup_monitoring.md @@ -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 ` \ No newline at end of file + `docker stack deploy -c monitor.yml ` + +* Login + + Username: admin + Password: admin \ No newline at end of file diff --git a/production_setup/monitor.yml b/production_setup/monitor.yml index 2cb3fb4..7bd20c5 100644 --- a/production_setup/monitor.yml +++ b/production_setup/monitor.yml @@ -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: