Skip to content

Commit d0c4cc5

Browse files
author
Sridhar K. N. Rao
committed
First one
0 parents  commit d0c4cc5

15 files changed

+3897
-0
lines changed

results/docker-compose.yml

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
volumes:
2+
prometheus_data: {}
3+
grafana_data: {}
4+
5+
networks:
6+
monitor-net:
7+
driver: bridge
8+
9+
services:
10+
prometheus:
11+
image: prom/prometheus:v2.5.0
12+
volumes:
13+
- ./prometheus/:/etc/prometheus/
14+
- prometheus_data:/prometheus
15+
command:
16+
- '--config.file=/etc/prometheus/prometheus.yml'
17+
- '--storage.tsdb.path=/prometheus'
18+
- '--web.console.libraries=/usr/share/prometheus/console_libraries'
19+
- '--web.console.templates=/usr/share/prometheus/consoles'
20+
- '--storage.tsdb.retention=200h'
21+
- '--web.enable-lifecycle'
22+
ports:
23+
- 9090:9090
24+
networks:
25+
- monitor-net
26+
labels:
27+
org.label-schema.group: "monitoring"
28+
restart: always
29+
grafana:
30+
image: grafana/grafana:5.4.0
31+
user: "104"
32+
depends_on:
33+
- prometheus
34+
ports:
35+
- 3000:3000
36+
volumes:
37+
- grafana_data:/var/lib/grafana
38+
- ./grafana/provisioning/:/etc/grafana/provisioning/
39+
env_file:
40+
- ./grafana/config.monitoring
41+
networks:
42+
- monitor-net
43+
labels:
44+
org.label-schema.group: "monitoring"
45+
restart: always
46+
mongo:
47+
image: mongo:3.2.1
48+
container_name: opnfv-mongo
49+
testapi:
50+
image: opnfv/testapi:latest
51+
container_name: opnfv-testapi
52+
environment:
53+
- mongodb_url=mongodb://mongo:27017/
54+
- base_url=HOST_IP:8001
55+
ports:
56+
- "8000:8000"
57+
- "8001:8001"
58+
links:
59+
- mongo

results/grafana/config.monitoring

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
GF_SECURITY_ADMIN_PASSWORD=foobar
2+
GF_USERS_ALLOW_SIGN_UP=false

0 commit comments

Comments
 (0)