Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i am not able to scrape msk metrics using the msk meterics file_sd #85

Open
kalavathiy opened this issue Aug 9, 2022 · 1 comment
Open

Comments

@kalavathiy
Copy link

No description provided.

@kalavathiy
Copy link
Author

docker file

FROM golang:1.15-alpine
WORKDIR /src
RUN apk --no-cache add git
COPY *.go go.mod go.sum ./
RUN CGO_ENABLED=0 GOOS=linux go build -o /bin/prometheus-msk-discovery .

FROM alpine:latest
RUN apk --no-cache add ca-certificates
COPY --from=0 /bin/prometheus-msk-discovery /bin/
ENTRYPOINT ["prometheus-msk-discovery"]
CMD ["/bin/prometheus-msk-discovery", "-config.write-to", "config_out/msk_file_sd.yml"]

prometheus.yml file

scrape_configs:

job_name: 'msk'
file_sd_configs:
files:

  • /prometheus/config_out/msk_file_sd.yml
    refresh_interval: 10m
    metric_relabel_configs:
    regex: task_arn
    action: labeldrop
    added side car container using efs volume and mount point is /config_out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant