Interview Prep/Monitoring & Observability/Logging: Loki, Fluent Bit and Elasticsearch

Agents log `server returned HTTP status 429 Too Many Requests (429): Ingestion rate limit exceeded for user fake (limit: 4194304 bytes/sec)`

IntermediateTroubleshootingLogging: Loki, Fluent Bit and Elasticsearch
Answer

Likely causes → The tenant exceeds ingestion_rate_mb / ingestion_burst_size_mb (defaults are low: 4 MB/s, 6 MB burst), often after a noisy service starts debug logging.

Diagnose →

sum by (tenant, reason) (rate(loki_discarded_samples_total[5m]))
topk(10, sum by (app) (rate(loki_distributor_bytes_received_total[5m])))

Fix → Find and quiet the noisy source (drop debug lines in the agent), then raise per-tenant limits:

limits_config:
  ingestion_rate_mb: 20
  ingestion_burst_size_mb: 40
  per_stream_rate_limit: 5MB

Prevent → Alert on discarded samples and set per-app log budgets.

All Monitoring & Observability questions Roadmap: Logging & tracing

More on Logging: Loki, Fluent Bit and Elasticsearch