Skip to content

Commit

Permalink
Use alpine to replace ELOed centos (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
taonic authored Sep 29, 2024
1 parent 04b2d77 commit 0c3cf64
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cloud/observability/promql-to-dd-go/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ RUN go get -d -v ./...
RUN CGO_ENABLED=${CGO_ENABLED:-0} GOOS=${TARGETOS} GOARCH=${TARGETARCH} \
go build -o ${GOPATH:-/go}/bin/ ${GOPATH:-/go}/src/promql-to-dd-go/cmd/promqltodd

FROM --platform=${BUILDPLATFORM:-linux/amd64} centos:latest
FROM --platform=${BUILDPLATFORM:-linux/amd64} alpine:latest

COPY --from=builder ${GOPATH:-/go}/bin/promqltodd /

Expand Down
2 changes: 1 addition & 1 deletion cloud/observability/promql-to-scrape/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ RUN go get -d -v ./...
RUN CGO_ENABLED=${CGO_ENABLED:-0} GOOS=${TARGETOS} GOARCH=${TARGETARCH} \
go build -o ${GOPATH:-/go}/bin/ ${GOPATH:-/go}/src/promql-to-scrape/cmd/promql-to-scrape

FROM --platform=${BUILDPLATFORM:-linux/amd64} centos:latest
FROM --platform=${BUILDPLATFORM:-linux/amd64} alpine:latest

COPY --from=builder ${GOPATH:-/go}/bin/promql-to-scrape /

Expand Down
2 changes: 1 addition & 1 deletion cloud/observability/promql-to-scrape/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ This will generate an example config at `config.yaml` that you may use. It looks
- For gauges, it simply queries for `gauge`
- For histograms, it does a p99 aggregated by `temporal_namespace` and `operation`. `histogram_quantile(0.99, sum(rate(metric[1m])) by (le, operation, temporal_namespace)`

Modify at your own risk. You may find you'd like to add a global latency across all namespaces for instance. You can add those queries to your config file.
Modify at your own risk. You may find you'd like to add a global latency across all namespaces for instance. You can add those queries to your config file.

0 comments on commit 0c3cf64

Please sign in to comment.