This repository has been archived by the owner on Oct 28, 2024. It is now read-only.
forked from ashiddo11/sqs-exporter
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from nadeemjamali/implement-monitoring-and-prom…
…-metrics basic improvements
- Loading branch information
Showing
6 changed files
with
72 additions
and
32 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 |
---|---|---|
@@ -1,20 +1,20 @@ | ||
FROM golang:1.10 | ||
FROM golang:1.13.3 | ||
|
||
WORKDIR /go/src/github.com/ashiddo11/sqs-exporter/ | ||
|
||
RUN go get github.com/aws/aws-sdk-go | ||
WORKDIR /go/src/github.com/nadeemjamali/sqs-prometheus-exporter/ | ||
|
||
COPY . . | ||
|
||
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o sqs-exporter . | ||
RUN go get -d ./... | ||
|
||
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o sqs-prometheus-exporter . | ||
|
||
FROM alpine | ||
|
||
COPY --from=0 /go/src/github.com/ashiddo11/sqs-exporter/sqs-exporter / | ||
COPY --from=0 /go/src/github.com/nadeemjamali/sqs-prometheus-exporter / | ||
|
||
RUN apk --update add ca-certificates && \ | ||
rm -rf /var/cache/apk/* | ||
|
||
EXPOSE 9434 | ||
|
||
CMD ["/sqs-exporter"] | ||
CMD ["/sqs-prometheus-exporter"] |
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,10 +1,9 @@ | ||
module github.com/nadeemjamali/sqs-exporter | ||
module github.com/nadeemjamali/sqs-prometheus-exporter | ||
|
||
go 1.13 | ||
|
||
require ( | ||
github.com/ashiddo11/sqs-exporter v0.0.1 | ||
github.com/aws/aws-sdk-go v1.30.5 | ||
github.com/aws/aws-sdk-go v1.30.6 | ||
github.com/go-co-op/gocron v0.1.0 | ||
github.com/prometheus/client_golang v1.5.1 | ||
) |
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
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