July 29

loki grafana fluentbit

Установка

https://grafana.com/docs/loki/latest/setup/install/helm/install-monolithic/

helm repo add grafana https://grafana.github.io/helm-charts
helm repo update
helm search repo grafana/loki
NAME  CHART VERSION APP VERSION DESCRIPTION
grafana/loki  6.7.3  3.1.0  Helm chart for Grafana Loki and Grafana Enterpr...
grafana/loki-canary   0.14.0   2.9.1  Helm chart for Grafana Loki Canary
grafana/loki-distributed  0.79.1   2.9.8  Helm chart for Grafana Loki in microservices mode
grafana/loki-simple-scalable 1.8.11   2.6.1  Helm chart for Grafana Loki in simple, scalable...
grafana/loki-stack  2.10.2   v2.9.3   Loki: like Prometheus, but for logs.

deploymentMode

  • SingleBinary: All Loki components run in a single process; suitable for small to medium deployments.
  • SimpleScalable: Multiple instances with a straightforward configuration for better scalability; suitable for medium to large environments.
  • Distributed: Fully distributed microservices architecture with each component running separately; ideal for large-scale, high-volume environments.

values.yaml

deploymentMode: SingleBinary
loki:
  commonConfig:
    replication_factor: 1
  storage:
    type: 'filesystem'
  schemaConfig:
    configs:
    - from: "2024-01-01"
      store: tsdb
      index:
        prefix: loki_index_
        period: 24h
      object_store: filesystem # we're storing on filesystem so there's no real persistence here.
      schema: v13
singleBinary:
  replicas: 1
read:
  replicas: 0
backend:
  replicas: 0
write:
  replicas: 0

helm repo add fluent https://fluent.github.io/helm-charts
helm repo update
helm show values fluent/fluent-bit > fluent-values.yaml

https://grafana.com/docs/loki/latest/send-data/fluentbit/