Skip to content

Commit

Permalink
Merge pull request #142 from nats-io/release/v0.8.0
Browse files Browse the repository at this point in the history
Release v0.8.0
  • Loading branch information
wallyqs authored Jun 25, 2021
2 parents 2677b2f + 1ce0bef commit 2da5dc5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ prometheus-nats-exporter <flags> url
Set the password for HTTP scrapes. NATS bcrypt supported.
-http_user string
Enable basic auth and set user name for HTTP scrapes.
-jsz string
Select JetStream metrics to filter (e.g streams, accounts, consumers, all)
-l string
Log file name.
-log string
Expand Down
11 changes: 4 additions & 7 deletions docker/linux/amd64/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
# Golang binary building stage
FROM golang:1.15

# download the source
WORKDIR /go/src/github.com/nats-io/prometheus-nats-exporter
RUN git clone --branch v0.7.0 https://github.com/nats-io/prometheus-nats-exporter.git .

# build
FROM golang:1.16
WORKDIR $GOPATH/src/github.com/nats-io/prometheus-nats-exporter
COPY . .
RUN go get ./...
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -a -tags netgo -installsuffix netgo -ldflags "-s -w"

# Final docker image building stage
Expand Down

0 comments on commit 2da5dc5

Please sign in to comment.