grok_exporter icon indicating copy to clipboard operation
grok_exporter copied to clipboard

K8s deployment yaml

Open ChSanjayBabu opened this issue 3 years ago • 5 comments

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

ChSanjayBabu avatar May 24 '21 09:05 ChSanjayBabu

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

ChSanjayBabu avatar May 25 '21 08:05 ChSanjayBabu

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

fstab avatar May 27 '21 21:05 fstab

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"]

rmendal avatar Jun 03 '21 13:06 rmendal

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

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

novohool avatar Dec 15 '22 06:12 novohool

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?

novohool avatar Dec 15 '22 06:12 novohool