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

K8s deployment yaml #154

Open
ChSanjayBabu opened this issue May 24, 2021 · 5 comments
Open

K8s deployment yaml #154

ChSanjayBabu opened this issue May 24, 2021 · 5 comments

Comments

@ChSanjayBabu
Copy link

@fstab please provide a sample deployment yaml for deploying grok-exporter as a pod in kubernetes

@ChSanjayBabu
Copy link
Author

someone please share dokcer run command for using fstab/grok-exporter image

@fstab
Copy link
Owner

fstab commented May 27, 2021

Did you build a Docker image with grok_exporter? Or are you looking for an existing Docker image?

@rmendal
Copy link

rmendal commented Jun 3, 2021

Building one is easy enough. This example is more than a year old but we utilized grok_exporter in an alpine image which ran in a multi-container pod along with puppet server to expose those logs to prometheus in our cluster.

FROM alpine:3.11.6

RUN mkdir /etc/grok_exporter && \
    mkdir /lib64 && \
    # Below allows the go binary to run on alpine
    ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2

COPY grok_exporter/ /etc/grok_exporter

EXPOSE 9144

ENTRYPOINT ["./etc/grok_exporter/grok_exporter", "-config", "/etc/grok_exporter/config.yaml"]

@novohool
Copy link

@fstab please provide a sample deployment yaml for deploying grok-exporter as a pod in kubernetes

https://gist.github.com/jingslunt/3c8d3c903c18f36e94f7158a7c829576

@novohool
Copy link

Did you build a Docker image with grok_exporter? Or are you looking for an existing Docker image?

When using k8s, I found that the memory usage is very high. Have you considered optimizing this?

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

4 participants