Skip to content
A change ships with its SLIs

A change ships with its SLIs

change-with-slis.mp4 (1:12, 720p, with sound): a feature team’s change includes the Metropolis definition for the metrics and SLOs it introduces. Both ship in one chart version, roll out to every cell, and are compiled by each cell’s own Metropolis operator. The same chart reaches self-managed customers. It shows the intended flow, using the Orbit chart and made-up versions for the demo.

TimeStepWhat happens
0:00Code and monitoring, one MREvery cell already runs its own Metropolis and o11y stack (see An o11y stack in every cell).
0:061 · The feature team’s MROrbit’s MR adds a new export endpoint and, in the service’s own chart, a GitLabServiceMetrics change declaring its SLI and SLO target.
0:182 · The MR pipelinemetropolis generate renders the recording rules, burn-rate alerts and dashboard every cell will run, so reviewers see them before merge. Then it merges and chart 0.14.0 is built.
0:303 · ring-0The QA cell deploys 0.14.0, and its Metropolis operator compiles the new SLI into rules, alerts and a dashboard.
0:404 · ring-1, then ring-2The same promotion as any version. Each cell compiles the SLI locally; nobody edits a cell’s monitoring by hand.
0:545 · Self-managedThe chart a customer installs carries the same monitoring. Customers who run our o11y stack get the new SLI compiled by their own Metropolis.
1:04DoneOne MR. Every cell, and every customer running our o11y stack, gets the new SLI.

How it works:

  • Monitoring is part of the service. The GitLabServiceMetrics resource lives in the service’s chart, reviewed in the same MR as the code it measures and shipped by the same deploy. See Metropolis: Monitoring as Part of the Service.
  • Review the output, not just the input. The Metropolis CLI’s metropolis generate renders the Prometheus rules and dashboards offline, so a CI job can show reviewers exactly what the operator will produce.
  • Compiled in each cell. There is no central rules repository to update: each cell’s operator turns the resource into rules for that cell’s Prometheus when the chart syncs.
  • Self-managed customers are optional consumers. A customer who wants more observability for their GitLab installation runs our o11y stack (o11y-metrics and Metropolis) through the Theseus tooling; their operator compiles the same definitions. Customers who don’t run it still install the same chart.
  • The YAML in the video is illustrative. It shows the shape of a GitLabServiceMetrics resource, not its exact schema.

This is what makes the failed-deployment runbook work: the cell’s own Prometheus already has the metrics a rollout analysis needs.

Editing

Last updated on