setup fluentd prometheus exporter

This commit is contained in:
2018-03-06 17:11:57 -05:00
parent 868e44d3cb
commit 978e2cf56d
10 changed files with 203 additions and 33 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -21,3 +21,5 @@ services:
ports:
- "24224:24224"
- "24224:24224/udp"
expose:
- "24220"

View File

@@ -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