fstab / grok_exporter

Export Prometheus metrics from arbitrary unstructured log data.
Apache License 2.0
899 stars 152 forks source link

K8s deployment yaml #154

Open ChSanjayBabu opened 3 years ago

ChSanjayBabu commented 3 years ago

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

ChSanjayBabu commented 3 years ago

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

fstab commented 3 years ago

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

rmendal commented 3 years ago

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 commented 1 year ago

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

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

novohool commented 1 year ago

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?