This repository was archived by the owner on Dec 5, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +91
-0
lines changed Expand file tree Collapse file tree 3 files changed +91
-0
lines changed Original file line number Diff line number Diff line change 43
43
< li > < a href ="/microservices-demo/deployment/apcera.html "> Apcera</ a > </ li >
44
44
</ ul >
45
45
</ li >
46
+ < li > < span > Monitoring</ span >
47
+ < ul >
48
+ < li > < a href ="/microservices-demo/deployment/monitoring-kubernetes.html "> Kubernetes</ a > </ li >
49
+ < li > < a href ="/microservices-demo/deployment/monitoring-docker-compose.html "> Docker Compose</ a > </ li >
50
+ </ ul >
51
+ </ li >
46
52
</ ul >
Original file line number Diff line number Diff line change
1
+ ---
2
+ layout : default
3
+ deployDoc : true
4
+ ---
5
+
6
+ ## Docker Compose
7
+
8
+ > NOTE: All the commands listed on this guide must be ran from the root of the project.
9
+
10
+
11
+ To deploy Prometheus & Grafana and to setup all the nice graphs that we got ready
12
+ for you, simply:
13
+
14
+ ```
15
+ $ docker-compose -f ./deploy/docker-compose/docker-compose.monitoring.yml up -d
16
+ ```
17
+
18
+ Wait for the deployment to be ready. Check the status with
19
+
20
+ ```
21
+ $ docker-compose -f ./deploy/docker-compose/docker-compose.monitoring.yml ps
22
+ ```
23
+
24
+ ### Importing The Dashboards
25
+
26
+ You only need to do this once:
27
+
28
+ ```
29
+ $ docker-compose \
30
+ -f ./deploy/docker-compose/docker-compose.monitoring.yml \
31
+ run \
32
+ --entrypoint /opt/grafana-import-dashboards/import.sh \
33
+ --rm \
34
+ importer
35
+ ```
36
+
37
+ ### Accessing The Services
38
+ Once the services are up & running you can access them with the following URLs:
39
+
40
+ * Prometheus: < http://localhost:9090 >
41
+ * Grafana: < http://localhost:3000 >
42
+
43
+ ### Grafana Credentials
44
+ <table class =" user-creds " >
45
+ <thead >
46
+ <tr>
47
+ <td>Username</td>
48
+ <td>Password</td>
49
+ </tr>
50
+ </thead >
51
+ <tbody >
52
+ <tr>
53
+ <td>admin</td>
54
+ <td>foobar</td>
55
+ </tr>
56
+ </tbody >
57
+ </table >
Original file line number Diff line number Diff line change
1
+ ---
2
+ layout : default
3
+ deployDoc : true
4
+ ---
5
+
6
+ ## Kubernetes
7
+ To deploy Prometheus & Grafana and to setup all the nice graphs that we got ready
8
+ for you, simply:
9
+
10
+ ```
11
+ $ kubectl create -f ./deploy/kubernetes/manifests-monitoring
12
+ ```
13
+
14
+ Assuming that used ` minikube ` to deploy your Kubernetes cluster, to get the URL of
15
+ the services:
16
+
17
+
18
+ #### Prometheus
19
+ ```
20
+ $ minikube service list | grep prometheus
21
+ | monitoring | prometheus | http://192.168.99.100:31090 |
22
+ ```
23
+
24
+ #### Grafana
25
+ ```
26
+ $ minikube service list | grep grafana
27
+ | monitoring | grafana | http://192.168.99.100:31300 |
28
+ ```
You can’t perform that action at this time.
0 commit comments