mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 20:41:09 +02:00
fix(promtail): move monitoring drop from relabel to pipeline_stages
relabel drop removed the entire stream before labels were set, causing the "at least one label pair required" error. pipeline_stages drop runs after labels are established, which is correct for filtering by tier. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
aa26ae12ad
commit
5fc34dafe8
1 changed files with 4 additions and 5 deletions
|
|
@ -82,12 +82,11 @@ scrape_configs:
|
|||
target_label: "tier"
|
||||
replacement: "other"
|
||||
|
||||
# Drop monitoring container logs to save space (they're noisy)
|
||||
- source_labels: ["tier"]
|
||||
regex: "monitoring"
|
||||
action: drop
|
||||
|
||||
pipeline_stages:
|
||||
# Drop monitoring container logs to save space (they're noisy)
|
||||
- match:
|
||||
selector: '{tier="monitoring"}'
|
||||
action: drop
|
||||
# Try to parse JSON logs (Go services, Hono services)
|
||||
- json:
|
||||
expressions:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue