-
Notifications
You must be signed in to change notification settings - Fork 0
/
log-pipeline.yml
139 lines (128 loc) · 3.5 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
version: '2'
services:
log-metrics:
hostname: docker-host
image: fest/log-metrics:${MON_LOG_METRICS_VERSION}
restart: on-failure
environment:
LOGSTASH_FIELDS: "service=monasca-log-metrics"
depends_on:
- kafka
- zookeeper
- log-transformer
log-persister:
hostname: docker-host
image: fest/log-persister:${MON_LOG_PERSISTER_VERSION}
restart: on-failure
environment:
LOGSTASH_FIELDS: "service=monasca-log-persister"
depends_on:
- kafka
- zookeeper
- elasticsearch
- log-transformer
log-transformer:
hostname: docker-host
image: fest/log-transformer:${MON_LOG_TRANSFORMER_VERSION}
restart: on-failure
environment:
LOGSTASH_FIELDS: "service=monasca-log-transformer"
depends_on:
- kafka
- zookeeper
- log-api
elasticsearch:
hostname: docker-host
image: fest/elasticsearch:${MON_ELASTICSEARCH_VERSION}
restart: on-failure
environment:
ES_HEAP_SIZE: ${MON_ELASTICSEARCH_HEAP_SIZE}
LOGSTASH_FIELDS: "service=elasticsearch"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- ${MON_DOCKER_VOL_ROOT}/elasticsearch/data:/usr/share/elasticsearch/data:Z
- ${MON_BACKUP_DIR}/elasticsearch_backup:/elasticsearch_backup:Z
elasticsearch-init:
hostname: docker-host
image: fest/elasticsearch-init:${MON_ELASTICSEARCH_INIT_VERSION}
environment:
LOGSTASH_FIELDS: "service=elasticsearch-init"
depends_on:
- elasticsearch
elasticsearch-curator:
hostname: docker-host
image: fest/elasticsearch-curator:${MON_ELASTICSEARCH_CURATOR_VERSION}
restart: on-failure
environment:
CURATOR_EXCLUDED_INDEX_NAME: .kibana
CURATOR_DELETE_BY_AGE: ${MON_ELASTICSEARCH_DATA_RETENTION_DAYS}
LOGSTASH_FIELDS: "service=elasticsearch-curator"
depends_on:
- elasticsearch
kafka-log-init:
hostname: docker-host
image: fest/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:
hostname: docker-host
image: fest/kibana:${MON_KIBANA_VERSION}
restart: on-failure
environment:
SERVER_NAME: kibana
ELASTICSEARCH_PINGTIMEOUT: 1000
LOGSTASH_FIELDS: "service=kibana"
depends_on:
- elasticsearch
- keystone
ports:
- 5601:5601
log-api:
hostname: docker-host
image: fest/log-api:${MON_LOG_API_VERSION}
restart: on-failure
environment:
LOGSPOUT: ignore
LOGSTASH_FIELDS: "service=monasca-log-api"
depends_on:
- keystone
- zookeeper
- kafka
- memcached
ports:
- "5607:5607"
log-agent:
hostname: docker-host
image: fest/log-agent:${MON_LOG_AGENT_VERSION}
restart: on-failure
environment:
LOGSPOUT: ignore
LOGSTASH_FIELDS: "service=monasca-log-agent"
OS_USERNAME: ${MON_AGENT_USERNAME}
OS_PASSWORD: ${MON_AGENT_PASSWORD}
OS_PROJECT_NAME: ${MON_AGENT_PROJECT_NAME}
depends_on:
- log-api
- keystone
logspout:
hostname: docker-host
image: fest/logspout:${MON_LOGSPOUT_VERSION}
restart: on-failure
privileged: true
environment:
RETRY_SEND: "true"
LOGSPOUT: ignore
LOGSTASH_FIELDS: "service=logspout"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
depends_on:
- log-agent