forked from prometheus/prometheus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into fabxc/servdisc
- Loading branch information
Showing
80 changed files
with
10,887 additions
and
9,295 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
*.cgo*.c | ||
*.cgo*.go | ||
*.conf | ||
*.rules | ||
*.exe | ||
*.orig | ||
*.pyc | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,35 @@ | ||
FROM golang:1.4 | ||
FROM alpine:edge | ||
MAINTAINER The Prometheus Authors <prometheus-developers@googlegroups.com> | ||
RUN apt-get -qy update && apt-get -qy install vim-common && rm -rf /var/lib/apt/lists/* && \ | ||
go get github.com/tools/godep | ||
|
||
WORKDIR /go/src/github.com/prometheus/prometheus | ||
ADD . /go/src/github.com/prometheus/prometheus | ||
ENV GOPATH /go | ||
COPY . /go/src/github.com/prometheus/prometheus | ||
|
||
RUN godep restore && go get -d | ||
RUN ./utility/embed-static.sh web/static web/templates | gofmt > web/blob/files.go | ||
|
||
RUN go build -ldflags " \ | ||
-X main.buildVersion $(cat VERSION) \ | ||
-X main.buildRevision $(git rev-parse --short HEAD) \ | ||
-X main.buildBranch $(git rev-parse --abbrev-ref HEAD) \ | ||
-X main.buildUser root \ | ||
-X main.buildDate $(date +%Y%m%d-%H:%M:%S) \ | ||
-X main.goVersion $GOLANG_VERSION \ | ||
" | ||
RUN cd tools/rule_checker && go build | ||
ADD ./documentation/examples/prometheus.conf /prometheus.conf | ||
RUN apk add --update -t build-deps go git mercurial vim \ | ||
&& apk add -u musl && rm -rf /var/cache/apk/* \ | ||
&& go get github.com/tools/godep \ | ||
&& cd /go/src/github.com/prometheus/prometheus \ | ||
&& $GOPATH/bin/godep restore && go get -d \ | ||
&& ./utility/embed-static.sh web/static web/templates | gofmt > web/blob/files.go \ | ||
&& go build -ldflags " \ | ||
-X main.buildVersion $(cat VERSION) \ | ||
-X main.buildRevision $(git rev-parse --short HEAD) \ | ||
-X main.buildBranch $(git rev-parse --abbrev-ref HEAD) \ | ||
-X main.buildUser root \ | ||
-X main.buildDate $(date +%Y%m%d-%H:%M:%S) \ | ||
-X main.goVersion $(go version | awk '{print substr($3,3)}') \ | ||
" -o /bin/prometheus \ | ||
&& cd tools/rule_checker && go build -o /bin/rule_checker && cd ../.. \ | ||
&& mkdir -p /etc/prometheus \ | ||
&& mv ./documentation/examples/prometheus.conf /etc/prometheus/prometheus.conf \ | ||
&& mv ./console_libraries/ ./consoles/ /etc/prometheus/ \ | ||
&& rm -rf /go \ | ||
&& apk del --purge build-deps | ||
|
||
EXPOSE 9090 | ||
VOLUME [ "/prometheus" ] | ||
WORKDIR /prometheus | ||
ENTRYPOINT [ "/go/src/github.com/prometheus/prometheus/prometheus" ] | ||
CMD [ "-logtostderr", "-config.file=/prometheus.conf", \ | ||
ENTRYPOINT [ "/bin/prometheus" ] | ||
CMD [ "-logtostderr", "-config.file=/etc/prometheus/prometheus.conf", \ | ||
"-storage.local.path=/prometheus", \ | ||
"-web.console.libraries=/go/src/github.com/prometheus/prometheus/console_libraries", \ | ||
"-web.console.templates=/go/src/github.com/prometheus/prometheus/consoles" ] | ||
"-web.console.libraries=/etc/prometheus/console_libraries", \ | ||
"-web.console.templates=/etc/prometheus/consoles" ] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
68 changes: 64 additions & 4 deletions
68
Godeps/_workspace/src/github.com/prometheus/client_golang/model/metric.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
25 changes: 17 additions & 8 deletions
25
Godeps/_workspace/src/github.com/prometheus/client_golang/model/metric_test.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
20 changes: 4 additions & 16 deletions
20
Godeps/_workspace/src/github.com/prometheus/client_golang/model/sample_test.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.