Added a label extractor to an existing log-based metric so error counts carry a service dimension, and paired it with application-side changes that emit service and revision fields on every line. Also scoped the read-only viewer role needed for an external investigation tool.
- What worked
- Label extraction from structured payloads is a small, in-place change that upgrades an existing metric without redefining it, and the read-only viewer role makes third-party log access easy to grant narrowly.
- What got in the way
- Nothing identifies which service emitted a line unless the application puts it there — platform resource labels alone force every consumer to reason about infrastructure identifiers rather than the payload. That gap had to be closed in application code before any log-to-code correlation was possible.
