Show More
|
1 | NO CONTENT: file renamed from config/loki/promtail-config.yaml to config/promtail/promtail-config.yaml |
@@ -1,110 +1,110 b'' | |||
|
1 | 1 | version: '3.9' |
|
2 | 2 | |
|
3 | 3 | volumes: |
|
4 | 4 | prometheus_data: {} |
|
5 | 5 | grafana_data: {} |
|
6 | 6 | logvolume: |
|
7 | 7 | driver: local |
|
8 | 8 | driver_opts: |
|
9 | 9 | type: none |
|
10 | 10 | o: bind |
|
11 | 11 | device: $PWD/logs |
|
12 | 12 | |
|
13 | 13 | networks: |
|
14 | 14 | rhodecode_network: |
|
15 | 15 | name: rhodecode_network |
|
16 | 16 | |
|
17 | 17 | |
|
18 | 18 | services: |
|
19 | 19 | |
|
20 | 20 | statsd-exporter: |
|
21 | 21 | image: prom/statsd-exporter:v0.22.8 |
|
22 | 22 | restart: unless-stopped |
|
23 | 23 | command: [ |
|
24 | '--statsd.mapping-config=/statsd/statsd.yaml', | |
|
24 | '--statsd.mapping-config=/etc/statsd/statsd.yaml', | |
|
25 | 25 | '--statsd.listen-udp=:9125', |
|
26 | 26 | '--web.listen-address=:9102' |
|
27 | 27 | ] |
|
28 | 28 | networks: |
|
29 | 29 | - rhodecode_network |
|
30 | 30 | ports: |
|
31 | 31 | - "127.0.0.1:9125:9125/udp" |
|
32 | 32 | - "127.0.0.1:9102:9102" |
|
33 | 33 | volumes: |
|
34 | - ./config/statsd-exporter:/statsd | |
|
34 | - ./config/statsd-exporter:/etc/statsd | |
|
35 | 35 | |
|
36 | 36 | node-exporter: |
|
37 | 37 | image: prom/node-exporter:v1.4.0 |
|
38 | 38 | command: |
|
39 | 39 | - "--path.procfs=/host/proc" |
|
40 | 40 | - "--path.rootfs=/rootfs" |
|
41 | 41 | - "--path.sysfs=/host/sys" |
|
42 | 42 | - "--collector.filesystem.mount-points-exclude=^/(sys|proc|dev|host|etc)($$|/)" |
|
43 | 43 | - "--collector.systemd" |
|
44 | 44 | - "--collector.processes" |
|
45 | 45 | networks: |
|
46 | 46 | - rhodecode_network |
|
47 | 47 | pid: host |
|
48 | 48 | restart: unless-stopped |
|
49 | 49 | ports: |
|
50 | 50 | - "127.0.0.1:9100:9100" |
|
51 | 51 | volumes: |
|
52 | 52 | - "/proc:/host/proc:ro" |
|
53 | 53 | - "/sys:/host/sys:ro" |
|
54 | 54 | - "/:/rootfs:ro" |
|
55 | 55 | |
|
56 | 56 | prometheus: |
|
57 | 57 | image: prom/prometheus:v2.39.1 |
|
58 | 58 | restart: unless-stopped |
|
59 | 59 | command: |
|
60 | 60 | - "--config.file=/etc/prometheus/prometheus.yml" |
|
61 | 61 | - "--storage.tsdb.path=/prometheus" |
|
62 | 62 | - "--web.console.libraries=/etc/prometheus/console_libraries" |
|
63 | 63 | - "--web.console.templates=/etc/prometheus/consoles" |
|
64 | 64 | - "--storage.tsdb.retention.time=24h" |
|
65 | 65 | - "--web.enable-lifecycle" |
|
66 | 66 | ports: |
|
67 | 67 | - "127.0.0.1:9090:9090" |
|
68 | 68 | networks: |
|
69 | 69 | - rhodecode_network |
|
70 | 70 | volumes: |
|
71 | 71 | - ./config/prometheus:/etc/prometheus |
|
72 | 72 | - prometheus_data:/prometheus |
|
73 | 73 | |
|
74 | 74 | grafana: |
|
75 | 75 | image: grafana/grafana:9.2.1-ubuntu |
|
76 | 76 | restart: unless-stopped |
|
77 | 77 | env_file: |
|
78 | 78 | - ./config/grafana/grafana.env |
|
79 | 79 | ports: |
|
80 | 80 | - "4000:3000" |
|
81 | 81 | volumes: |
|
82 | 82 | - grafana_data:/var/lib/grafana |
|
83 | 83 | networks: |
|
84 | 84 | - rhodecode_network |
|
85 | 85 | |
|
86 | 86 | loki: |
|
87 | 87 | image: grafana/loki:2.6.1 |
|
88 | 88 | restart: unless-stopped |
|
89 | 89 | ports: |
|
90 | 90 | - "127.0.0.1:3100:3100" |
|
91 | 91 | - "127.0.0.1:9095:9095" |
|
92 | 92 | command: [ |
|
93 | 93 | "-config.file=/etc/loki/loki-config.yaml" |
|
94 | 94 | ] |
|
95 | 95 | networks: |
|
96 | 96 | - rhodecode_network |
|
97 | 97 | volumes: |
|
98 | 98 | - ./config/loki:/etc/loki |
|
99 | 99 | |
|
100 | 100 | promtail: |
|
101 | 101 | image: grafana/promtail:latest |
|
102 | 102 | command: [ |
|
103 | 103 | "-config.file=/etc/promtail/promtail-config.yaml" |
|
104 | 104 | ] |
|
105 | 105 | networks: |
|
106 | 106 | - rhodecode_network |
|
107 | 107 | volumes: |
|
108 | 108 | - /var/log:/var/log |
|
109 | 109 | - logvolume:/var/log_volume |
|
110 |
- ./config/ |
|
|
110 | - ./config/promtail:/etc/promtail |
General Comments 0
You need to be logged in to leave comments.
Login now