Skip to content

Commit

Permalink
Make federate sharding possible in metrics-collector by using workers (
Browse files Browse the repository at this point in the history
…#1628)

* Remove crazy env var based testing in metrics-collector

Signed-off-by: Saswata Mukherjee <[email protected]>

* Refactor forwarder, clean up code, make to client mTLS optional, remove unused recording-file and collect-file flags

Signed-off-by: Saswata Mukherjee <[email protected]>

* Enable sharded metrics-collector with separate agents for recording and collectrules, also removed sort-of-defunct last metrics and reload handling

Signed-off-by: Saswata Mukherjee <[email protected]>

* Remove the overly complex test for worker which now times out. The test only tests for reconfiguring, which again, is not a critical function of metrics-collector

Signed-off-by: Saswata Mukherjee <[email protected]>

* Address feedback from review

Signed-off-by: Saswata Mukherjee <[email protected]>

---------

Signed-off-by: Saswata Mukherjee <[email protected]>
  • Loading branch information
saswatamcode authored Sep 23, 2024
1 parent c70bd0d commit 4fdfb99
Show file tree
Hide file tree
Showing 22 changed files with 784 additions and 557 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 4fdfb99

Please sign in to comment.