Skip to content

riywo/sample-fluentd-on-mesos-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fluentd on Mesos + Docker + Marathon

This is a sample of fluentd running on mesos, docker and marathon.

Overview

diagram

Prerequire

Usage

Startup boxes

$ git clone https://github.com/riywo/sample-fluentd-on-mesos-docker
$ cd sample-fluentd-on-mesos-docker
$ vagrant up

Make sure the /etc/hosts is recognized by dnsmasq

$ vagrant ssh mesos-master
$ sudo service lxc-net restart

$ vagrant ssh mesos-slave[12]
$ sudo service lxc-net restart

Start containers of Elasticsearch and Kibana

$ vagrant ssh mesos-master
$ sudo docker run -d -p 9200:9200 arcus/elasticsearch
$ sudo docker run -d -p 8888:80 -e ES_PORT=9200 -e ES_HOST=mesos-master arcus/kibana

Start Fluentd(td-agent) instances via Marathon

$ vagrant ssh mesos-master
$ cat /vagrant/td-agent.json | http POST http://mesos-master:8080/v1/apps/start
HTTP/1.1 204 No Content
Content-Type: application/json
Server: Jetty(8.y.z-SNAPSHOT)

Start HAProxy container

$ vagrant ssh mesos-master
$ sudo docker run -d -p 5555:8080 -e MARATHON_URL=http://mesos-master:8080 -e APP_ID=td-agent -e HEALTH_PATH=/?json=%7B%7D haproxy

Send logs!

$ vagrant ssh mesos-master
$ http POST http://mesos-master:5555/test a=1

About

Fluentd on Mesos + Docker + Marathon

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published