-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-log.yaml
113 lines (106 loc) · 2.63 KB
/
docker-compose-log.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
version: "3"
services:
tempo:
image: grafana/tempo:2.1.1
command: "-config.file=/etc/tempo/local-config.yaml"
volumes:
- ./logs/config/tempo/:/etc/tempo/
- tempo-data:/tmp/tempo
# networks:
# - logs
ports:
- "14268" # jaeger ingest
- "9411:9411" # zipkin
network_mode: host
loki:
image: grafana/loki:2.8.2
volumes:
- ./logs/config/loki/:/etc/loki/
- loki-data:/loki
command: -config.file=/etc/loki/local-config.yaml
# environment:
# - JAEGER_AGENT_HOST=localhost
# - JAEGER_ENDPOINT=http://localhost:14268/api/traces # send traces to Tempo
# - JAEGER_SAMPLER_TYPE=const
# - JAEGER_SAMPLER_PARAM=1
# networks:
# - logs
ports:
- "3100:3100"
network_mode: host
influxdb:
image: influxdb:1.8
volumes:
- influxdb-data:/var/lib/influxdb2
# set db name in environment variable
environment:
- INFLUXD_DB=k6
# networks:
# - logs
ports:
- "8086:8086"
network_mode: host
grafana:
environment:
- GF_PATHS_PROVISIONING=/etc/grafana/provisioning
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_INSTALL_PLUGINS=blackmirror1-singlestat-math-panel
entrypoint:
- sh
- -euc
- |
mkdir -p /etc/grafana/provisioning/datasources
cat <<EOF > /etc/grafana/provisioning/datasources/ds.yaml
apiVersion: 1
datasources:
- name: Loki
type: loki
access: proxy
orgId: 1
url: http://localhost:3100
basicAuth: false
isDefault: true
version: 1
editable: false
- name: InfluxDB
type: influxdb
access: proxy
orgId: 1
url: http://localhost:8086
database: k6
user: admin
password: admin
basicAuth: false
isDefault: false
version: 1
editable: false
- name: Tempo
type: tempo
access: proxy
orgId: 1
url: http://localhost:3200
basicAuth: false
isDefault: false
version: 1
editable: false
EOF
/run.sh
image: grafana/grafana:latest
volumes:
- ./logs/config/graphana/dashboard.yaml:/etc/grafana/provisioning/dashboards/main.yaml
- ./logs/config/graphana/dashboards/:/var/lib/grafana/dashboards/
ports:
- "3000:3000"
# networks:
# - loki
network_mode: host
depends_on:
- loki
- influxdb
# networks:
# logs:
volumes:
influxdb-data:
loki-data:
tempo-data: