1
0
Fork 0

Add grafana stuff

This commit is contained in:
Gregory Eremin 2016-07-07 10:55:40 +02:00
parent 4d8ad0ed72
commit 6abf147cca
3 changed files with 27 additions and 15 deletions

View File

@ -1,13 +1,13 @@
FROM ubuntu:14.04 FROM ubuntu:14.04
MAINTAINER Gregory Eremin <g@erem.in> MAINTAINER Gregory Eremin <g@erem.in>
LABEL app="grafana" LABEL app="grafana"
LABEL version="3.0.4" LABEL version="3.1.0-beta1"
LABEL github="https://github.com/grafana/grafana" LABEL github="https://github.com/grafana/grafana"
ENV DEBIAN_FRONTEND noninteractive ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update RUN apt-get update
RUN apt-get -y upgrade RUN apt-get -y upgrade
RUN apt-get install -y curl make git nodejs npm RUN apt-get install -y curl make git build-essential
RUN cd /tmp && curl -O https://storage.googleapis.com/golang/go1.6.linux-amd64.tar.gz RUN cd /tmp && curl -O https://storage.googleapis.com/golang/go1.6.linux-amd64.tar.gz
WORKDIR /tmp WORKDIR /tmp
@ -21,18 +21,19 @@ RUN go env
RUN go get -d -v github.com/grafana/grafana || true RUN go get -d -v github.com/grafana/grafana || true
WORKDIR /go/src/github.com/grafana/grafana WORKDIR /go/src/github.com/grafana/grafana
RUN git checkout v3.0.4 RUN git checkout v3.1.0-beta1
RUN go run build.go setup RUN go run build.go setup
RUN rm -rf Godeps/_workspace RUN rm -rf Godeps/_workspace
RUN godep restore RUN godep restore
RUN go run build.go build RUN go run build.go build
RUN curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
RUN apt-get install -y nodejs
RUN node -v
RUN npm -v
RUN npm install RUN npm install
RUN npm run build RUN npm run build
# COPY configs/carbon.toml /etc/carbon.toml EXPOSE 3000
# COPY configs/storage-schemas.conf /etc/storage-schemas.conf ENTRYPOINT ./bin/grafana-server
# RUN mkdir -p /data/graphite/whisper
# EXPOSE 2003 2004 7002
# ENTRYPOINT ./go-carbon -config=/etc/carbon.toml
ENTRYPOINT sleep 1000

View File

@ -1,19 +1,31 @@
graphite: graphite:
@echo "Building Carbon"
docker build -t localhots/carbon:v1 -f Carbon.dockerfile . docker build -t localhots/carbon:v1 -f Carbon.dockerfile .
docker build -t localhots/brubeck:v1 -f Brubeck.dockerfile . @echo "Starting Carbon"
docker run -d --name carbon \ docker run -d --name carbon \
-p 2003:2003 \ -p 2003:2003 \
-p 2004:2004 \ -p 2004:2004 \
-p 7002:7002 \ -p 7002:7002 \
-v /data/graphite/whisper /var/whisper \
localhots/carbon:v1 localhots/carbon:v1
@echo "Building Brubeck"
docker build -t localhots/brubeck:v1 -f Brubeck.dockerfile .
@echo "Starting Brubeck"
docker run -d --name brubeck --link carbon:carbon \ docker run -d --name brubeck --link carbon:carbon \
-p 8080:8080 \ -p 8080:8080 \
-p 8126:8126 \ -p 8126:8126 \
-p 9126:9126 \ -p 9126:9126 \
localhots/brubeck:v1 localhots/brubeck:v1
@echo "Building Grafana"
docker build -t localhots/grafana:v1 -f Grafana.dockerfile .
@echo "Starting Brubeck"
docker run -d --name grafana --link carbon:carbon --link brubeck:brubeck \
-p 3000:3000 \
localhots/brubeck:v1
fast: fast:
# LOL
@echo "Graphite is fast now!" @echo "Graphite is fast now!"
again: again:

View File

@ -1,13 +1,12 @@
# Graphite-ish # Graphite-ish
Original Graphite stack is written in Python and it's speed could have been Original [Graphite](http://graphiteapp.org/) stack is written in Python and it's
better. Luckily it is possible to replace original stack with other components speed could have been better. Luckily it is possible to replace original stack
that have [better](https://github.com/lomik/go-carbon/tree/v0.7.2#performance) 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). performance. Quite [impressive](https://github.com/github/brubeck/tree/5d139a4#faq).
Grafana 3 is also included. Grafana 3 is also included.
**Included software:** **Included software:**
* [go-carbon](https://github.com/lomik/go-carbon/tree/v0.7.2) `v0.7.2` * [go-carbon](https://github.com/lomik/go-carbon/tree/v0.7.2) `v0.7.2`