Let the dashboard match a rolled api container by pattern #96

Closed
opened 2026-10-10 05:32:57 +00:00 by ahmad · 0 comments
Owner

Context

grafana-dashboard's "API errors" Loki panel matches the api container by exact name ({container="<api-container>"}). A service deployed with deploy-vps's rolling-services has no fixed name: compose numbers each replica (rihla-api-2, rihla-api-3, …), so after the first swap the panel shows nothing. Needed for suhba/rihla#417.

Scope

  • In: match api-container as a regular expression (=~), and say so in the input's description and the README.
  • Out: the other panels.

Acceptance criteria

  • Given api-container: rihla-api-.*, when the dashboard is pushed, then the panel shows errors from whichever replica is running.
  • Given an existing consumer passing an exact name, when the dashboard is pushed, then the panel matches that container as before.
### Context grafana-dashboard's "API errors" Loki panel matches the api container by exact name (`{container="<api-container>"}`). A service deployed with deploy-vps's `rolling-services` has no fixed name: compose numbers each replica (`rihla-api-2`, `rihla-api-3`, …), so after the first swap the panel shows nothing. Needed for suhba/rihla#417. ### Scope - In: match `api-container` as a regular expression (`=~`), and say so in the input's description and the README. - Out: the other panels. ### Acceptance criteria - [ ] Given `api-container: rihla-api-.*`, when the dashboard is pushed, then the panel shows errors from whichever replica is running. - [ ] Given an existing consumer passing an exact name, when the dashboard is pushed, then the panel matches that container as before.
ahmad self-assigned this 2026-10-10 05:32:57 +00:00
ahmad closed this issue 2026-10-10 05:40:09 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
amtronics/platform-actions#96
No description provided.