You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

모니터링 docker-compose 실행

[root@spring2-vm microservices-demo-1]# docker-compose -f deploy/docker-compose/docker-compose.monitoring.yml up -d
WARNING: Found orphan containers (docker-compose_orders_1, docker-compose_queue-master_1, docker-compose_front-end_1, docker-compose_shipping_1, docker-compose_carts_1, docker-compose_user-db_1, docker-compose_catalogue-db_1, docker-compose_orders-db_1, docker-compose_carts-db_1, docker-compose_edge-router_1, docker-compose_payment_1, docker-compose_user_1, docker-compose_catalogue_1, docker-compose_rabbitmq_1, docker-compose_kibana_1, docker-compose_log-server_1) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.
docker-compose_alertmanager_1 is up-to-date
prometheus is up-to-date
docker-compose_grafana_1 is up-to-date
Starting docker-compose_importer_1 ... done
[root@spring2-vm microservices-demo-1]# 
[root@spring2-vm microservices-demo-1]# docker ps
CONTAINER ID        IMAGE                                COMMAND                  CREATED             STATUS              PORTS                                           NAMES
84a7df93bc5d        grafana/grafana                      "/run.sh"                2 hours ago         Up 2 hours          0.0.0.0:3000->3000/tcp                          docker-compose_grafana_1
5fac000bf21a        prom/prometheus                      "/bin/prometheus --c   2 hours ago         Up 2 hours          0.0.0.0:9090->9090/tcp                          prometheus
618f495bc64f        prom/alertmanager                    "/bin/alertmanager -   2 hours ago         Up 2 hours          0.0.0.0:9093->9093/tcp                          docker-compose_alertmanager_1


DashBoad 생성

[root@spring2-vm microservices-demo-1]# docker-compose \
>     -f ./deploy/docker-compose/docker-compose.monitoring.yml \
>     run \
>     --entrypoint /opt/grafana-import-dashboards/import.sh \
>     --rm \
>     importer
WARNING: Found orphan containers (docker-compose_orders_1, docker-compose_queue-master_1, docker-compose_front-end_1, docker-compose_shipping_1, docker-compose_carts_1, docker-compose_user-db_1, docker-compose_catalogue-db_1, docker-compose_orders-db_1, docker-compose_carts-db_1, docker-compose_edge-router_1, docker-compose_payment_1, docker-compose_user_1, docker-compose_catalogue_1, docker-compose_rabbitmq_1, docker-compose_kibana_1, docker-compose_log-server_1) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.
Starting docker-compose_alertmanager_1 ... done
Starting prometheus                    ... done
Starting docker-compose_grafana_1      ... done
importing prometheus-datasource.json
curl: (22) The requested URL returned error: 409 Conflict

importing sock-shop-performance-dashboard.json
{"pluginId":"","title":"Sock-Shop Performance","imported":true,"importedUri":"db/sock-shop-performance","importedUrl":"/d/03jxHd3iz/sock-shop-performance","slug":"","dashboardId":0,"folderId":0,"importedRevision":1,"revision":1,"description":"","path":"","removed":false}
[root@spring2-vm microservices-demo-1]# 


Grapana

URL : http://docker.thesanse.com:3000

Grafana Credentials

UsernamePassword
adminfoobar


Prometheus

URL : http://docker.thesanse.com:9090



Alertmanager

URL :  http://docker.thesanse.com:9093

  • No labels