-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
139 lines (102 loc) · 4.79 KB
/
Makefile
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
DOCKER_FILE_FLUENTD = docker-compose-fluentd.yml
DOCKER_FILE_TELEGRAF = docker-compose-telegraf.yml
DOCKER_FILE_LOGSTASH = docker-compose-logstash.yml
################### FLUENTD ###########################
start-fluentd:
@echo "Use docker compose file: $(DOCKER_FILE_FLUENTD)"
docker-compose -f $(DOCKER_FILE_FLUENTD) up -d
stop-fluentd:
@echo "Use docker compose file: $(DOCKER_FILE_FLUENTD)"
docker-compose -f $(DOCKER_FILE_FLUENTD) down
build-fluentd:
@echo "Use docker compose file: $(DOCKER_FILE_FLUENTD)"
docker-compose -f $(DOCKER_FILE_FLUENTD) build
restart-fluentd-jti-native:
@echo "Use docker compose file: $(DOCKER_FILE_FLUENTD)"
docker-compose -f $(DOCKER_FILE_FLUENTD) restart jti_udp_native
restart-fluentd-jti-oc:
@echo "Use docker compose file: $(DOCKER_FILE_FLUENTD)"
docker-compose -f $(DOCKER_FILE_FLUENTD) restart jti_openconfig
restart-influxdb-fluentd:
@echo "Use docker compose file: $(DOCKER_FILE_FLUENTD)"
docker-compose -f $(DOCKER_FILE_FLUENTD) restart influxdb
restart-grafana-fluentd:
@echo "Use docker compose file: $(DOCKER_FILE_FLUENTD)"
docker-compose -f $(DOCKER_FILE_FLUENTD) restart grafana
restart-chronograf-fluentd:
@echo "Use docker compose file: $(DOCKER_FILE_FLUENTD)"
docker-compose -f $(DOCKER_FILE_FLUENTD) restart chronograf
restart-kapacitor-fluentd:
@echo "Use docker compose file: $(DOCKER_FILE_FLUENTD)"
docker-compose -f $(DOCKER_FILE_FLUENTD) restart kapacitor
restart-kafka-fluentd:
@echo "Use docker compose file: $(DOCKER_FILE_FLUENTD)"
docker-compose -f $(DOCKER_FILE_FLUENTD) restart kafka
docker-compose -f $(DOCKER_FILE_FLUENTD) restart zookeeper
#################### END FLUENTD ##########################
#################### TELEGRAF #############################
start-telegraf:
@echo "Use docker compose file: $(DOCKER_FILE_TELEGRAF)"
docker-compose -f $(DOCKER_FILE_TELEGRAF) up -d
stop-telegraf:
@echo "Use docker compose file: $(DOCKER_FILE_TELEGRAF)"
docker-compose -f $(DOCKER_FILE_TELEGRAF) down
build-telegraf:
@echo "Use docker compose file: $(DOCKER_FILE_TELEGRAF)"
docker-compose -f $(DOCKER_FILE_TELEGRAF) build
restart-telegraf-jti-native:
@echo "Use docker compose file: $(DOCKER_FILE_TELEGRAF)"
docker-compose -f $(DOCKER_FILE_TELEGRAF) restart jti_udp_native
restart-telegraf-jti-oc:
@echo "Use docker compose file: $(DOCKER_FILE_TELEGRAF)"
docker-compose -f $(DOCKER_FILE_TELEGRAF) restart jti_openconfig
restart-influxdb-telegraf:
@echo "Use docker compose file: $(DOCKER_FILE_TELEGRAF)"
docker-compose -f $(DOCKER_FILE_TELEGRAF) restart influxdb
restart-grafana-telegraf:
@echo "Use docker compose file: $(DOCKER_FILE_TELEGRAF)"
docker-compose -f $(DOCKER_FILE_TELEGRAF) restart grafana
restart-chronograf-telegraf:
@echo "Use docker compose file: $(DOCKER_FILE_TELEGRAF)"
docker-compose -f $(DOCKER_FILE_TELEGRAF) restart chronograf
restart-kapacitor-telegraf:
@echo "Use docker compose file: $(DOCKER_FILE_TELEGRAF)"
docker-compose -f $(DOCKER_FILE_TELEGRAF) restart kapacitor
restart-kafka-telegraf:
@echo "Use docker compose file: $(DOCKER_FILE_TELEGRAF)"
docker-compose -f $(DOCKER_FILE_TELEGRAF) restart kafka
docker-compose -f $(DOCKER_FILE_TELEGRAF) restart zookeeper
#################### END TELEGRAF ##########################
#################### LOGSTASH #############################
start-logstash:
@echo "Use docker compose file: $(DOCKER_FILE_LOGSTASH)"
docker-compose -f $(DOCKER_FILE_LOGSTASH) up -d
stop-logstash:
@echo "Use docker compose file: $(DOCKER_FILE_LOGSTASH)"
docker-compose -f $(DOCKER_FILE_LOGSTASH) down
build-logstash:
@echo "Use docker compose file: $(DOCKER_FILE_LOGSTASH)"
docker-compose -f $(DOCKER_FILE_LOGSTASH) build
restart-logstash-jti-native:
@echo "Use docker compose file: $(DOCKER_FILE_LOGSTASH)"
docker-compose -f $(DOCKER_FILE_LOGSTASH) restart jti_udp_native
restart-logstash-jti-oc:
@echo "Use docker compose file: $(DOCKER_FILE_LOGSTASH)"
docker-compose -f $(DOCKER_FILE_LOGSTASH) restart jti_openconfig
restart-influxdb-logstash:
@echo "Use docker compose file: $(DOCKER_FILE_LOGSTASH)"
docker-compose -f $(DOCKER_FILE_LOGSTASH) restart influxdb
restart-grafana-logstash:
@echo "Use docker compose file: $(DOCKER_FILE_LOGSTASH)"
docker-compose -f $(DOCKER_FILE_LOGSTASH) restart grafana
restart-chronograf-logstash:
@echo "Use docker compose file: $(DOCKER_FILE_LOGSTASH)"
docker-compose -f $(DOCKER_FILE_LOGSTASH) restart chronograf
restart-kapacitor-logstash:
@echo "Use docker compose file: $(DOCKER_FILE_LOGSTASH)"
docker-compose -f $(DOCKER_FILE_LOGSTASH) restart kapacitor
restart-kafka-logstash:
@echo "Use docker compose file: $(DOCKER_FILE_LOGSTASH)"
docker-compose -f $(DOCKER_FILE_LOGSTASH) restart kafka
docker-compose -f $(DOCKER_FILE_LOGSTASH) restart zookeeper
#################### END LOGSTASH ##########################