feat: Match the dashboard api container by pattern #97
No reviewers
Labels
No labels
priority/P0
priority/P1
priority/P2
priority/P3
size/L
size/M
size/S
size/XL
size/XS
state/blocked
state/done
state/in-progress
state/in-review
state/needs-refinement
state/ready
type/bug
type/chore
type/feature
type/refactor
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
amtronics/platform-actions!97
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/96-dashboard-container-pattern"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Issue
Closes #96
Problem
The "API errors" Loki panel matches the api container by exact name. With
rolling-services, replicas are numbered (rihla-api-2,rihla-api-3, …), so the panel goes empty after the first swap. Needed for suhba/rihla#417.Solution
The panel query uses
=~, soapi-containeris a regular expression. An exact name such astrip-app-1still matches only that container.Review notes
N/A
Risks and trade-offs
A name containing
.now matches any character in that position. No current container name has one.Verified on
8039b8b4: the panel matcher is=~and Loki anchors label regexes, so an exact name such astrip-app-1still matches only itself (#96 AC2) andrihla-api-.*matches the numbered replicas (AC1). The input description and the README row say the value is a regular expression. Thesedsubstitution is unchanged; the eight current consumers pass plain names with no/,&or\, so none breaks. CI green, title 50.Note, not blocking: the branch commit's subject is 52 chars; the squash takes the 50-char title, so what lands on main is within the bar.