1
0
Fork 0

Grafana wip

This commit is contained in:
Gregory Eremin 2016-07-06 23:25:41 +02:00
parent b242784b41
commit 7644cd4035
No known key found for this signature in database
GPG Key ID: 5EFA427EEC26E86C
3 changed files with 61 additions and 2 deletions

View File

@ -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

38
Grafana.dockerfile Normal file
View File

@ -0,0 +1,38 @@
FROM ubuntu:14.04
MAINTAINER Gregory Eremin <g@erem.in>
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

View File

@ -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
```