Giter VIP home page Giter VIP logo

docker-elastic-topbeat's Introduction

Docker Elastic.co Topbeat

WARNING: With the release of the new 5.0 set of Elastic.co products, Topbeat will be deprecated and replaced by Metricbeat.

A Metricbeat Docker image is available right now: https://hub.docker.com/r/athieriot/metricbeat/

Please acknowledge that, at the moment (October 2016), the configuration of Metricbeat container can't be done via environment variables. You will need to provide a config file for further customisation.

Alpine based

  • 1.3.0, 1.3.1
  • 1.2.3-alpine

Ubuntu based

  • 1.2.0, 1.2.1, 1.2.2, 1.2.3
  • 1.1.2, 1.1.1, 1.1.0
  • 1.0.1, 1.0.0

Docker Pulls

Docker image for Elastic Topbeat

Usage

Elasticsearch

  docker run -d \
    --link=elasticsearch:elasticsearch \
    --name=topbeat \
    --pid=host \
    athieriot/topbeat

Logstash

  docker run -d \
    -e PROFILE=logstash \
    --link=logstash:logstash \
    --name=topbeat \
    --pid=host \
    athieriot/topbeat

File

  docker run -d \
    -e PROFILE=file \
    -v /path/to/data/:/topbeat/data/ \
    --name=topbeat \
    --pid=host \
    athieriot/topbeat

Console

  docker run \
    -e PROFILE=console \
    --name=topbeat \
    --pid=host \
    athieriot/topbeat

Custom configuration file

  docker run -d \
    -e PROFILE=custom \
    -v /path/to/config/topbeat.yml:/topbeat/config/topbeat.yml \
    --name=topbeat \
    --pid=host \
    athieriot/topbeat

More variables

General

  docker run -d \
    -e HOST=elasticsearch.in.aws.com \
    -e PORT=80 \
    -e CPU_PER_CORE=false \
    -e INDEX=topbeat \
    -e PROCS=.* \
    -e PERIOD=10 \
    -e SHIPPER_NAME=super-app \
    -e SHIPPER_TAGS="qa", "db" \
    --name=topbeat \
    --pid=host \
    athieriot/topbeat

Elasticsearch template configuration

In the event you are usage a custom configuration or logstash but want to add Topbeat templates to your own Elasticsearch instance:

  docker run -d \
    -e PROFILE=logstash \
    -e EXTERNAL_ELASTIC_HOST=my.elasticsearch.com \
    -e EXTERNAL_ELASTIC_PORT=9200 \
    --link=logstash:logstash \
    --name=topbeat \
    --pid=host \
    athieriot/topbeat

Troubleshouting

Elasticsearch host inavailable within a container

Somehow, when Elasticsearch is launched inside a container it is inaccessible from another linked container. A configuration has to be set for it to work properly. Change IP as needed.

  docker run --name=elasticsearch elasticsearch elasticsearch -Des.network.bind_host=0.0.0.0

docker-elastic-topbeat's People

Contributors

athieriot avatar stephanlindauer avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.