How to tune Loki data log volumes/ingestion/retention in COS

Thanks for surfacing this @erik-lonroth.

  • The loki charm has config options for ingestion limit and retention period.
  • Size-based retention is something many people are interested in, but it was difficult to implement (1, 2).
  • Check out the sizing guide.
  • Promtail has a drop directive, and we can try to think how to expose it in the charm. Suggestions welcome!
    • Haven’t seen yet if dropping is possible on the receiving side (loki)
  • See also info about the REST endpoint for manual deletion
1 Like