Like Prometheus, but for logs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
loki/clients/cmd/fluentd/Dockerfile

22 lines
669 B

FROM ruby:3.4.3 AS build
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y --no-install-recommends \
sudo make gcc g++ libc-dev ruby-dev golang
COPY . /src/loki
WORKDIR /src/loki
RUN make BUILD_IN_CONTAINER=false fluentd-plugin
FROM fluent/fluentd:v1.18-debian-1
ENV LOKI_URL="https://logs-prod-us-central1.grafana.net"
COPY --from=build /src/loki/clients/cmd/fluentd/lib/fluent/plugin/out_loki.rb /fluentd/plugins/out_loki.rb
COPY clients/cmd/fluentd/docker/Gemfile /fluentd/
COPY clients/cmd/fluentd/docker/conf/loki.conf /fluentd/etc/loki.conf
USER root
RUN sed -i '$i'' @include loki.conf' /fluentd/etc/fluent.conf
USER fluent