Giter VIP home page Giter VIP logo

docker-elastic-metricbeat's Introduction

Docker Elastic.co Metricbeat

Docker Pulls

Docker image for Elastic Metricbeat

Usage

Elasticsearch

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

Logstash

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

File

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

Console

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

Custom configuration file

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

More variables

General

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

Elasticsearch template configuration

In the event you are usage a custom configuration or logstash but want to add metricbeat 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=metricbeat \
    --pid=host \
    athieriot/metricbeat

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-metricbeat's People

Watchers

 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.