forked from monasca/monasca-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
log-pipeline.yml
114 lines (105 loc) · 2.79 KB
/
log-pipeline.yml
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
114
version: '3'
services:
log-metrics:
image: monasca/log-metrics:${MON_LOG_METRICS_VERSION}
environment:
LOGSTASH_FIELDS: "service=monasca-log-metrics"
depends_on:
- kafka
- zookeeper
- log-transformer
log-persister:
image: monasca/log-persister:${MON_LOG_PERSISTER_VERSION}
environment:
LOGSTASH_FIELDS: "service=monasca-log-persister"
depends_on:
- kafka
- zookeeper
- elasticsearch
- log-transformer
log-transformer:
image: monasca/log-transformer:${MON_LOG_TRANSFORMER_VERSION}
environment:
LOGSTASH_FIELDS: "service=monasca-log-transformer"
depends_on:
- kafka
- zookeeper
- log-api
elasticsearch:
image: elasticsearch:${ELASTICSEARCH_VERSION}
environment:
- cluster.name=monasca
- http.host=0.0.0.0
- transport.host=127.0.0.1
- bootstrap.memory_lock=true
- ES_JAVA_OPTS=-Xms1g -Xmx1g
- LOGSTASH_FIELDS="service=elasticsearch"
ports:
- 9200:9200
- 9300:9300
elasticsearch-init:
image: monasca/elasticsearch-init:${MON_ELASTICSEARCH_INIT_VERSION}
environment:
LOGSTASH_FIELDS: "service=elasticsearch-init"
volumes:
- ./elasticsearch-templates/logs.template:/templates/logs.json
depends_on:
- elasticsearch
elasticsearch-curator:
image: monasca/elasticsearch-curator:${MON_ELASTICSEARCH_CURATOR_VERSION}
environment:
LOGSTASH_FIELDS: "service=elasticsearch-curator"
depends_on:
- elasticsearch
kafka-log-init:
image: monasca/kafka-init:${MON_KAFKA_INIT_VERSION}
environment:
KAFKA_TOPIC_CONFIG: segment.ms=900000 # 15m
KAFKA_CREATE_TOPICS: "\
log:4:1,\
log-transformed:4:1"
LOGSTASH_FIELDS: "service=kafka-log-init"
depends_on:
- kafka
kibana:
image: monasca/kibana:${MON_KIBANA_VERSION}
environment:
SERVER_NAME: kibana
ELASTICSEARCH_PINGTIMEOUT: 1000
LOGSTASH_FIELDS: "service=kibana"
depends_on:
- elasticsearch
- keystone
ports:
- 5601:5601
log-api:
image: monasca/log-api:${MON_LOG_API_VERSION}
environment:
LOGSPOUT: ignore
LOGSTASH_FIELDS: "service=monasca-log-api"
depends_on:
- keystone
- zookeeper
- kafka
- memcached
ports:
- "5607:5607"
log-agent:
image: monasca/log-agent:${MON_LOG_AGENT_VERSION}
environment:
LOGSPOUT: ignore
LOGSTASH_FIELDS: "service=monasca-log-agent"
depends_on:
- log-api
- keystone
ports:
- "5610:5610"
logspout:
image: monasca/logspout:${MON_LOGSPOUT_VERSION}
environment:
LOGSPOUT: ignore
LOGSTASH_FIELDS: "service=logspout"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
depends_on:
- log-agent