Merge pull request 'infra(logging): drop osint scrapy item payloads so 8 days fits the PVC' (#56) from wt/t_34ddaa83 into master

This commit is contained in:
sirius 2026-11-27 05:45:51 +00:00
commit 35610c8d13
2 changed files with 50 additions and 12 deletions

View file

@ -97,6 +97,23 @@ loki.process "pod_logs" {
}
}
// osint/news-scraper prints one JSON-ish *item* dump per crawled article
// (`{'title': ..., 'url': ..., ... }`, up to 4.7 kB each). That is scraped
// payload, not an operational log line — the same rows are written to the
// osint Postgres DB — and it is ~88 % of the namespace's volume (measured
// ~150 MB/h during a crawl). Keeping it would push 8 days of retention past
// the 8Gi PVC, so it is dropped here, by exact prefix, for that one
// container. Every operational line (scrapy INFO/WARNING/ERROR, tracebacks,
// duplicate-URL warnings) still ships.
stage.match {
selector = "{namespace=\"osint\", container=\"news-scraper\"}"
stage.drop {
expression = "^\\{'title':"
drop_counter_reason = "osint_article_payload"
}
}
forward_to = [loki.write.local.receiver]
}