From 7644cd4035b68351ba789f27ec1f4823d07fe794 Mon Sep 17 00:00:00 2001 From: Gregory Eremin Date: Wed, 6 Jul 2016 23:25:41 +0200 Subject: [PATCH] Grafana wip --- Brubeck.dockerfile | 1 + Grafana.dockerfile | 38 ++++++++++++++++++++++++++++++++++++++ README.md | 24 ++++++++++++++++++++++-- 3 files changed, 61 insertions(+), 2 deletions(-) create mode 100644 Grafana.dockerfile diff --git a/Brubeck.dockerfile b/Brubeck.dockerfile index b5ce930..3a5daf9 100644 --- a/Brubeck.dockerfile +++ b/Brubeck.dockerfile @@ -14,6 +14,7 @@ RUN apt-get install -y make RUN mkdir /build RUN cd /build && git clone https://github.com/github/brubeck.git WORKDIR /build/brubeck +RUN git checkout 5d139a44206813640151cf0af17d32ee9ac41a60 RUN ./script/bootstrap COPY configs/brubeck.json /etc/brubeck.json diff --git a/Grafana.dockerfile b/Grafana.dockerfile new file mode 100644 index 0000000..281acfd --- /dev/null +++ b/Grafana.dockerfile @@ -0,0 +1,38 @@ +FROM ubuntu:14.04 +MAINTAINER Gregory Eremin +LABEL app="grafana" +LABEL version="3.0.4" +LABEL github="https://github.com/grafana/grafana" + +ENV DEBIAN_FRONTEND noninteractive +RUN apt-get update +RUN apt-get -y upgrade +RUN apt-get install -y curl make git nodejs npm + +RUN cd /tmp && curl -O https://storage.googleapis.com/golang/go1.6.linux-amd64.tar.gz +WORKDIR /tmp +RUN tar -xvf go1.6.linux-amd64.tar.gz +RUN mv go /usr/local +RUN mkdir /go +ENV PATH $PATH:/usr/local/go/bin:/go/bin +ENV GOPATH /go +RUN go version +RUN go env + +RUN go get -d -v github.com/grafana/grafana || true +WORKDIR /go/src/github.com/grafana/grafana +RUN git checkout v3.0.4 + +RUN go run build.go setup +RUN rm -rf Godeps/_workspace +RUN godep restore +RUN go run build.go build +RUN npm install +RUN npm run build + +# COPY configs/carbon.toml /etc/carbon.toml +# COPY configs/storage-schemas.conf /etc/storage-schemas.conf +# RUN mkdir -p /data/graphite/whisper +# EXPOSE 2003 2004 7002 +# ENTRYPOINT ./go-carbon -config=/etc/carbon.toml +ENTRYPOINT sleep 1000 diff --git a/README.md b/README.md index 9dedf06..4f7a4d1 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,27 @@ -# Graphite (but faster) +# Graphite-ish -Local installation: +Original Graphite stack is written in Python and it's speed could have been +better. Luckily it is possible to replace original stack with other components +that have [better](https://github.com/lomik/go-carbon/tree/v0.7.2#performance) +performance. Quite [impressive](https://github.com/github/brubeck/tree/5d139a4#faq). + +Grafana 3 is also included. + + +**Included software:** + +* [go-carbon](https://github.com/lomik/go-carbon/tree/v0.7.2) `v0.7.2` +* [Brubeck](https://github.com/github/brubeck/tree/5d139a4) `5d139a4` +* [Grafana](https://github.com/grafana/grafana/tree/v3.0.4) `v3.0.4` + +**Local installation:** ``` make graphite fast ``` + +**Re-installation:** + +``` +make graphite fast again +```