Last active
October 10, 2019 10:10
-
-
Save luginbash/d8f3268b67eeb0499fd8edd31bcb5821 to your computer and use it in GitHub Desktop.
Dockerized EFK with Fluentbit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.2' | |
services: | |
fluentbit: | |
image: fluent/fluent-bit:latest | |
links: | |
- "elasticsearch" | |
ports: | |
- "24224:24224" | |
- "24224:24224/udp" | |
volumes: | |
- ./fluentbit.conf:/fluent-bit/etc/fluent-bit.conf | |
depends_on: | |
- elasticsearch | |
elasticsearch: | |
container_name: elasticsearch | |
image: elasticsearch:7.2.0 | |
ports: | |
- "9200:9200" | |
volumes: | |
- esdata:/usr/share/elasticsearch/data | |
environment: | |
- node.name=elasticsearch | |
- discovery.seed_hosts=elasticsearch | |
- cluster.initial_master_nodes=elasticsearch | |
- bootstrap.memory_lock=true | |
- "ES_JAVA_OPTS=-Xms512m -Xmx512m" | |
ulimits: | |
memlock: | |
soft: -1 | |
hard: -1 | |
kibana: | |
image: kibana:7.2.0 | |
links: | |
- "elasticsearch" | |
ports: | |
- "5601:5601" | |
depends_on: | |
- elasticsearch | |
influxdb: | |
image: influxdb:latest | |
ports: | |
- 8086:8086 | |
volumes: | |
- influx:/var/lib/influxdb | |
environment: | |
- INFLUXDB_DB=db0 | |
- INFLUXDB_ADMIN_USER=ops | |
- INFLUXDB_ADMIN_PASSWORD=03b69ac3-e486-45dd-865f-81fc77d24303 | |
chronograf: | |
image: chronograf:latest | |
ports: | |
- '127.0.0.1:8888:8888' | |
volumes: | |
- chronograf-storage:/var/lib/chronograf | |
depends_on: | |
- influxdb | |
environment: | |
- INFLUXDB_URL=http://influxdb:8086 | |
- INFLUXDB_USERNAME=ops | |
- INFLUXDB_PASSWORD=03b69ac3-e486-45dd-865f-81fc77d24303 | |
grafana: | |
image: grafana/grafana:latest | |
ports: | |
- '3000:3000' | |
volumes: | |
- grafana-storage:/var/lib/grafana | |
- ./grafana-provisioning/:/etc/grafana/provisioning | |
depends_on: | |
- influxdb | |
environment: | |
- GF_SECURITY_ADMIN_USER=ops | |
- GF_SECURITY_ADMIN_PASSWORD=362ce436-14f0-431c-b3ab-6f0d84729228 | |
volumes: | |
esdata: | |
influx: | |
chronograf-storage: | |
grafana-storage: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[SERVICE] | |
Flush 5 | |
Log_Level debug | |
[INPUT] | |
Name cpu | |
[INPUT] | |
Name forward | |
[OUTPUT] | |
Name es://elasticsearch:9200 | |
Match * |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment