mirror of
https://github.com/0rph3us/monitoring.git
synced 2025-08-16 08:32:32 +02:00
simple monitoring solution with grafana, go-carbon and carbonapi
This commit is contained in:
24
go-carbon/Dockerfile
Normal file
24
go-carbon/Dockerfile
Normal 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" ]
|
Reference in New Issue
Block a user