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

Commit 840c8a6

Browse files
author
Carlos León
committed
Add HOWTO deploy monitoring services with Docker Compose
1 parent 9a34ceb commit 840c8a6

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed

_includes/doc_menu.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
<li><span>Monitoring</span>
4646
<ul>
4747
<li><a href="/microservices-demo/deployment/monitoring-kubernetes.html">Kubernetes</a></li>
48+
<li><a href="/microservices-demo/deployment/monitoring-docker-compose.html">Docker Compose</a></li>
4849
</ul>
4950
</li>
5051
</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>

0 commit comments

Comments
 (0)