Grafana wip
This commit is contained in:
parent
b242784b41
commit
7644cd4035
|
@ -14,6 +14,7 @@ RUN apt-get install -y make
|
||||||
RUN mkdir /build
|
RUN mkdir /build
|
||||||
RUN cd /build && git clone https://github.com/github/brubeck.git
|
RUN cd /build && git clone https://github.com/github/brubeck.git
|
||||||
WORKDIR /build/brubeck
|
WORKDIR /build/brubeck
|
||||||
|
RUN git checkout 5d139a44206813640151cf0af17d32ee9ac41a60
|
||||||
RUN ./script/bootstrap
|
RUN ./script/bootstrap
|
||||||
|
|
||||||
COPY configs/brubeck.json /etc/brubeck.json
|
COPY configs/brubeck.json /etc/brubeck.json
|
||||||
|
|
|
@ -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
|
24
README.md
24
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
|
make graphite fast
|
||||||
```
|
```
|
||||||
|
|
||||||
|
**Re-installation:**
|
||||||
|
|
||||||
|
```
|
||||||
|
make graphite fast again
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in New Issue