mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 21:41:09 +02:00
fix(promtail): add default tier label to prevent empty label stream errors
Containers that don't match any tier regex had no labels, causing Loki to reject the stream with "at least one label pair is required". Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
222094d13f
commit
961cdfbcd2
1 changed files with 6 additions and 0 deletions
|
|
@ -76,6 +76,12 @@ scrape_configs:
|
|||
target_label: "tier"
|
||||
replacement: "service"
|
||||
|
||||
# Default tier for anything unmatched
|
||||
- source_labels: ["tier"]
|
||||
regex: "^$"
|
||||
target_label: "tier"
|
||||
replacement: "other"
|
||||
|
||||
# Drop monitoring container logs to save space (they're noisy)
|
||||
- source_labels: ["tier"]
|
||||
regex: "monitoring"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue