Skip to content

Commit

Permalink
Enable sharded metrics-collector with separate agents for recording a…
Browse files Browse the repository at this point in the history
…nd collectrules, also removed sort-of-defunct last metrics and reload handling

Signed-off-by: Saswata Mukherjee <saswataminsta@yahoo.com>
  • Loading branch information
saswatamcode committed Sep 22, 2024
1 parent ea0c0f3 commit 06277c4
Show file tree
Hide file tree
Showing 15 changed files with 360 additions and 154 deletions.
17 changes: 17 additions & 0 deletions collectors/metrics/Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM golang:1.22-alpine3.18 AS builder

WORKDIR /workspace
COPY go.sum go.mod ./
COPY ./collectors/metrics ./collectors/metrics
COPY ./operators/pkg ./operators/pkg
COPY ./operators/multiclusterobservability/api ./operators/multiclusterobservability/api
RUN go build -v -o metrics-collector ./collectors/metrics/cmd/metrics-collector/main.go

FROM alpine:3.18 AS runner

USER 1001:1001

COPY --from=builder /workspace/metrics-collector /usr/bin/


CMD ["/bin/bash", "-c", "/usr/bin/metrics-collector"]
Loading

0 comments on commit 06277c4

Please sign in to comment.