Comments (2)
I got it to work by following dockbeat pattern and adding 2 files - Dockerfile and elasticbeat-docker.yml. Not sure how to do a clean PR cause of docker namespacing issues, but here's the quick and dirty (I'm sure these files could be cleaned up a lot).
Dockerfile:
FROM golang:1.7
# install pyyaml
RUN cd /tmp && wget http://pyyaml.org/download/pyyaml/PyYAML-3.11.tar.gz && tar -zxvf PyYAML-3.11.tar.gz
RUN cd /tmp/PyYAML-3.11 && python setup.py install
# install glide
RUN go get github.com/Masterminds/glide
COPY . $GOPATH/src/github.com/radoondas/elasticbeat
RUN cd $GOPATH/src/github.com/radoondas/elasticbeat && make && make
RUN mkdir -p /etc/elasticbeat/ \
&& cp $GOPATH/src/github.com/radoondas/elasticbeat/elasticbeat /usr/local/bin/elasticbeat \
&& cp $GOPATH/src/github.com/radoondas/elasticbeat/elasticbeat-docker.yml /etc/elasticbeat/elasticbeat.yml \
&& cp $GOPATH/src/github.com/radoondas/elasticbeat/etc/elasticbeat.template.json /etc/elasticbeat/
WORKDIR /etc/elasticbeat
ENTRYPOINT elasticbeat
CMD [ "-c", "elasticbeat.yml", "-e" ]
elasticbeat-docker.yml
input:
period: ${ELASTICBEAT_PERIOD:10}
urls:
- http://${ELASTICBEAT_URL:127.0.0.1:9200}
stats:
cluster: ${ELASTICBEAT_CLUSTER:true}
nodes: ${ELASTICBEAT_NODES:true}
health: ${ELASTICBEAT_HEALTH:true}
output:
elasticsearch:
hosts: ["${ELASTICBEAT_URL:localhost:9200}"]
template:
name: "elasticbeat"
path: "elasticbeat.template.json"
overwrite: false
shipper:
logging:
files:
rotateeverybytes: 10485760 # = 10MB
Then a few docker cmds:
- docker build -t elasticbeat .
- docker run -e ELASTICBEAT_URL='192.168.1.2:9200' elasticbeat
from elasticbeat.
Thanks @ericslandry !
I am about to play with docker and your input will be very helpful.
from elasticbeat.
Related Issues (20)
- Facing difficulty in installing elasticbeat HOT 4
- Unable to import Searches/Visualizations/Dashboards in Kibana HOT 6
- Update documentation with required version of GO. HOT 1
- Please create a Guide on installing elasticbeat on Windows HOT 15
- Index pattern folder does not contain a file (When downloading repository - Windows) HOT 4
- Rename Dashboard name
- Add basich authentication for elasticsearch requests
- Revisit breaking changes for v5
- Missing Fields HOT 3
- Update GO to 1.6.3
- Make cpu_percent signed integer HOT 3
- Update Go to 1.7.1
- Update elastic beat to be compatible with libbeat 5 and ES5 HOT 4
- Update GO to version 1.7.3
- Collecting metrics of a specify index HOT 4
- Unable to Import Elasticbeat Dashboards in Kibana HOT 4
- Extend /_nodes/stats/ with indices metrics
- elasticbeat not registering metrics when ES is behind HTTPS
- Cannot build with go 1.8.1: /main.go:13: cannot use beater.New() (type *beater.Elasticbeat) as type HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elasticbeat.