File tree Expand file tree Collapse file tree 3 files changed +12
-10
lines changed Expand file tree Collapse file tree 3 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ services:
7575 aliases:
7676 - graylog
7777 ports:
78- - 12201 :12201/udp
78+ - 12203 :12201/udp
7979 - 12202:12202/udp
8080 deploy:
8181 replicas: 1
@@ -100,32 +100,33 @@ services:
100100 - traefik.http.middlewares.graylog_replace_regex.replacepathregex.replacement=/$${1}
101101 - traefik.http.routers.graylog.middlewares=ops_whitelist_ips@swarm, ops_gzip@swarm, graylog_replace_regex
102102 vector:
103- image: timberio/vector:0.49 .X-debian
103+ image: timberio/vector:0.50 .X-debian
104104 ports:
105- - "12200: 12201/udp" # GELF input
105+ - "12201:12203 /udp" # GELF input
106106 volumes:
107107 - /var/run/docker.sock:/var/run/docker.sock:ro
108108 environment:
109109 - VECTOR_CONFIG=/etc/vector/vector.yaml
110110 - VECTOR_LOG=info
111+ - VECTOR_LOG_DESTINATION=${VECTOR_LOG_DESTINATION}
111112 configs:
112113 - source: vector_config
113114 target: /etc/vector/vector.yaml
114115 deploy:
115- replicas: 0
116+ replicas: 1
116117 resources:
117118 limits:
118119 cpus: "1.0"
119120 memory: 512M
120121 reservations:
121122 memory: 256M
122123 labels: []
123- networks:
124- - monitoring
125- - graylog
124+ networks: []
126125
127126 loki:
128- image: grafana/loki:3.5.4
127+ image: grafana/loki:3.5.7
128+ ports:
129+ - "12204:3100/udp" # GELF input
129130 configs:
130131 - source: loki_config
131132 target: /etc/loki/loki.yaml
Original file line number Diff line number Diff line change @@ -24,3 +24,4 @@ S3_FORCE_PATH_STYLE_LOKI=${S3_FORCE_PATH_STYLE_LOKI}
2424S3_REGION_LOKI = ${ S3_REGION_LOKI }
2525S3_SECRET_KEY_LOKI = ${ S3_SECRET_KEY_LOKI }
2626STORAGE_DOMAIN = ${ STORAGE_DOMAIN }
27+ VECTOR_LOG_DESTINATION = ${ VECTOR_LOG_DESTINATION }
Original file line number Diff line number Diff line change 5858 loki :
5959 type : loki
6060 inputs : ["process_logs"]
61- endpoint : " http://loki:3100 "
61+ endpoint : " http://${VECTOR_LOG_DESTINATION:?err}:12204 "
6262 encoding :
6363 codec : json
6464 labels :
7676 graylog :
7777 type : socket
7878 inputs : ["process_logs"]
79- address : " logging_graylog:12201 "
79+ address : " ${VECTOR_LOG_DESTINATION:?err}:12203 "
8080 mode : udp
8181 encoding :
8282 codec : gelf
You can’t perform that action at this time.
0 commit comments