Skip to content

Commit

Permalink
Use alpine to replace ELOed centos
Browse files Browse the repository at this point in the history
  • Loading branch information
taonic committed Aug 22, 2024
1 parent 4840cd7 commit cfc0051
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 cfc0051

Please sign in to comment.