Skip to content
This repository was archived by the owner on Dec 5, 2023. It is now read-only.

Commit fb0fb97

Browse files
authored
Merge pull request #66 from microservices-demo/features/monitoring
Add monitoring instructions
2 parents 2411032 + 840c8a6 commit fb0fb97

File tree

3 files changed

+91
-0
lines changed

3 files changed

+91
-0
lines changed

_includes/doc_menu.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,10 @@
4343
<li><a href="/microservices-demo/deployment/apcera.html">Apcera</a></li>
4444
</ul>
4545
</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>
4652
</ul>
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
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>

deployment/monitoring-kubernetes.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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+
```

0 commit comments

Comments
 (0)