Did that deploy break production? Lining up CI runs with server metrics

When CPU or memory jumps, the first question is usually "what changed?". Connecting GitHub Actions and GitLab runs to your server metrics answers it in seconds.

AskMyServers team · · 3 min read

It's 10:40. Memory on the API server, which has sat at about 45% for weeks, is now at 90% and still climbing. Somebody in the team chat asks the question everyone is thinking: "Did anyone deploy anything?"

Then comes the scramble. Someone opens GitHub Actions, someone else scrolls through the chat for "deploying now", and a third person checks the server. Ten minutes later you work out that yes, a deploy finished at 10:31.

That ten minutes is the part worth getting rid of.

Most incidents follow a change

This isn't a rule of nature, but in practice a large share of production problems start shortly after something changed: new code, a config tweak, a dependency bump, a migration. So the fastest first question in almost any incident is "what changed just before this started?"

The trouble is that the answer lives in a different tool from the symptom. Metrics are in one place, deploys in another.

Put them on the same timeline

When your CI pipeline reports each run (status, branch, commit, start and finish time) to the same place that holds your server metrics, you can compare them directly:

  • average CPU and memory in the 30 minutes before a deploy finished
  • the same averages in the 30 minutes after

If memory went from 45% to 80% across that line, you have a strong hint, not proof. Traffic might have spiked at the same moment, or a scheduled job might have started. But it tells you where to look first, and that's usually what you need at 10:40.

AskMyServers does this on the Deployments and Health pages: each successful deploy to a known server is checked, and ones followed by a big jump are flagged with a note like "Memory rose from 45% to 82% in the 30 minutes after this deployment. The deployment may be related."

Connecting GitHub Actions or GitLab

You add the repository in AskMyServers and get a webhook URL and secret. In GitHub that goes under Settings → Webhooks (with workflow run events); in GitLab under Settings → Webhooks (with pipeline events). No access to your code is needed, only the run events. From then on every run shows up with its status and duration.

The numbers worth tracking over time

Once runs are being recorded, a few numbers become available almost for free:

NumberWhat it tells you
Success rateHow often the pipeline fails
Deploys per dayHow often you ship
Median and slowest build timeWhether builds are getting slower
Time to recoverHow long from a failed run to the next green one

If those look familiar, they're close cousins of the DORA metrics many teams use to talk about delivery. You don't need a big process around them. Just watching them drift is useful: a build that has quietly doubled in length over three months is worth an afternoon.

Ask the question directly

With deploys and metrics in the same place, you can ask your AI assistant the question from the start of this article and get a real answer:

"Did my last deployment cause a problem?"

It checks recent runs, the servers they deploy to, and what the metrics did afterwards. It can't roll anything back (AskMyServers is read-only by design), but it can save you those ten minutes.

Connect a repository

Did that deploy break production? Lining up CI runs with server metrics · AskMyServers