simple monitoring solution with grafana, go-carbon and carbonapi

This commit is contained in:
Michael Rennecke
2017-03-17 22:57:44 +01:00
parent 759f971612
commit 68f29949a4
7 changed files with 204 additions and 0 deletions

24
go-carbon/Dockerfile Normal file
View File

@@ -0,0 +1,24 @@
FROM golang:1.8-alpine
RUN mkdir -p /tmp/go-carbon
ENV GOPATH /tmp/go-carbon/_vendor
# build carbonapi
RUN set -x \
&& cd /tmp/go-carbon \
&& apk add --update git \
&& git clone https://github.com/lomik/go-carbon.git --depth=1 . \
&& git submodule init \
&& git submodule update --recursive \
&& go build github.com/lomik/go-carbon \
&& mv go-carbon /sbin/ \
&& cd / \
&& apk del git \
&& rm -f /tmp/$VERSION.zip \
&& rm -rf /tmp/go-carbon \
&& rm -rf /var/cache/apk/*
EXPOSE 2003 2004 7002 7007 2003/udp
ENTRYPOINT [ "/sbin/go-carbon" ]