Skip to content

Instantly share code, notes, and snippets.

@khanetor
Created January 20, 2022 10:47
Show Gist options
  • Save khanetor/e88cc26dd899bd13d86f18dbbedba7ee to your computer and use it in GitHub Desktop.
Save khanetor/e88cc26dd899bd13d86f18dbbedba7ee to your computer and use it in GitHub Desktop.
Setup Fluent-bit with Elasticsearch backend and Kibana frontend
version: "3.9"
services:
elasticsearch:
image: elasticsearch:7.16.3
environment:
- discovery.type=single-node
expose:
- 9200
- 9300
networks:
- fluent-net
kibana:
image: kibana:7.16.3
ports:
- 5601:5601
environment:
- ELASTICSEARCH_HOSTS=http://elasticsearch:9200
networks:
- fluent-net
fluent-bit:
image: fluent/fluent-bit:1.8
command: /fluent-bit/bin/fluent-bit -i cpu -o es://elasticsearch:9200/cpu/metrics
networks:
- fluent-net
networks:
fluent-net:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment