setup fluentd prometheus exporter
This commit is contained in:
@@ -13,4 +13,4 @@ RUN apk add --update --virtual .build-deps \
|
||||
&& rm -rf /var/cache/apk/* \
|
||||
/home/fluent/.gem/ruby/2.3.0/cache/*.gem
|
||||
|
||||
EXPOSE 24224
|
||||
EXPOSE 24224 24220
|
||||
|
||||
@@ -18,9 +18,13 @@ services:
|
||||
ports:
|
||||
- "24224:24224"
|
||||
- "24224:24224/udp"
|
||||
- 24220:24220
|
||||
expose:
|
||||
- "24220"
|
||||
|
||||
deploy:
|
||||
mode: global
|
||||
mode: replicated
|
||||
replicas: 1
|
||||
restart_policy:
|
||||
condition: any
|
||||
delay: "1s"
|
||||
@@ -31,8 +35,20 @@ services:
|
||||
order: start-first
|
||||
resources:
|
||||
limits:
|
||||
cpus: '0.5'
|
||||
cpus: '1'
|
||||
memory: 64M
|
||||
|
||||
networks:
|
||||
- ingress
|
||||
- prod
|
||||
|
||||
networks:
|
||||
default:
|
||||
external:
|
||||
name: ingress
|
||||
ingress:
|
||||
external:
|
||||
name: ingress
|
||||
prod:
|
||||
external:
|
||||
name: prod
|
||||
|
||||
@@ -21,3 +21,5 @@ services:
|
||||
ports:
|
||||
- "24224:24224"
|
||||
- "24224:24224/udp"
|
||||
expose:
|
||||
- "24220"
|
||||
|
||||
@@ -4,6 +4,12 @@
|
||||
port 24224
|
||||
</source>
|
||||
|
||||
<source>
|
||||
@type monitor_agent
|
||||
bind 0.0.0.0
|
||||
port 24220
|
||||
</source>
|
||||
|
||||
<match **>
|
||||
@type loggly
|
||||
loggly_url https://logs-01.loggly.com/inputs/22feaabc-c080-4407-86c3-ae9052999786/tag/fluentd
|
||||
|
||||
Reference in New Issue
Block a user