Prometheus, Kubernetes and PagerDuty as Evidence in Support Investigations
When a customer reports an error, the answer may be a 5xx spike in Prometheus, a pod in CrashLoopBackOff, or a PagerDuty incident engineering already has open. TicketResolve brings all three into the investigation, read-only and without AI, as evidence a person weighs.

Support often learns about an infrastructure problem from customers, while engineering learns about it from dashboards. TicketResolve investigations connect the two, so a ticket that says "your app keeps timing out" sits next to what the infrastructure was doing at that moment.
Here's a Wednesday at a company that runs a fitness-class booking app:
- 07:40. Customers start writing: "The app keeps timing out when I book." Support treats it as a customer problem: clear the cache, try Wi-Fi, reinstall.
- 07:45. Engineering's PagerDuty fires: "bookings-api 5xx rate high". The on-call engineer sees a pod in CrashLoopBackOff, out of memory.
- 08:30. Support has sent 40 replies about clearing caches. Engineering resolves the incident at 08:20. Support finds out at 09:00, when someone mentions it in Slack.
Both teams were looking at the same problem, from opposite ends, without seeing each other.
First, the basics
- Prometheus collects metrics: request rate, error rate, latency, CPU, memory. 5xx responses are server errors; p95 latency is the time 95% of requests finish within.
- Kubernetes runs applications in pods. CrashLoopBackOff means a pod keeps crashing and restarting. OOMKilled means it ran out of memory. FailedScheduling means there wasn't room to run it. Probes check whether a pod is healthy.
- A service account limits what a program in a cluster may do. Namespaces separate parts of a cluster.
- PagerDuty alerts engineers about incidents. The Events API v2 sends events into it; an integration key identifies where they go. A webhook subscription sends PagerDuty's incidents out.
- De-duplication stops one problem paging several times.
- A correlation is two things happening together; it isn't proof of cause.
Why does this matter? When customers report a problem that's already an incident, support should know within minutes, not hours. Bringing infrastructure evidence into the investigation, read-only, connects the ticket to what engineering already sees.
The problem, in plain terms
- Support and engineering see different sides of the same problem.
- Customers get troubleshooting steps for an outage.
- Cluster access for a vendor is a security risk.
- Alerts page several times for one problem.
Prometheus
Connect Prometheus and investigations get request rate, 5xx rate, p95 latency, CPU and memory for the affected service. A latency jump that lines up with the customer's report becomes evidence, labelled as a correlation and not as the cause.
Kubernetes, read-only
Your cluster's API is never exposed to TicketResolve. Instead, the TicketResolve agent runs inside the cluster with a service account that can only get and list pods and events in the namespaces you name. Every round it sends a small snapshot:
- pod phase, readiness and restarts
- the last termination reason
- warning events
Investigations use these to spot CrashLoopBackOff, OOMKilled, FailedScheduling and failing probes. Messages are masked, and no secrets, environment variables or specs are ever sent.
PagerDuty, both ways
- Out: predictive alerts, and their resolution, can open PagerDuty events through an Events API v2 integration key. They are de-duplicated, so one problem doesn't page five times.
- In: a PagerDuty webhook subscription sends incidents as they're triggered, acknowledged and resolved. TicketResolve lines them up with tickets and releases in investigations, incidents and the technical intelligence dashboard.
Keys are stored encrypted and never shown again.
Evidence, not verdicts
None of these sources uses AI, and none of them declares a root cause on its own. They add evidence to the investigation, and a person confirms the cause.
A worked example, start to finish
Here's the same Wednesday, with all three connected. The details are illustrative.
07:40. The first booking-timeout tickets open an investigation on bookings-api.
07:41, Prometheus. For bookings-api: 5xx rate up from 0.1% to 14% since 07:36; p95 latency from 300 ms to 9 s; memory climbing to its limit. The latency jump lines up with the customers' reports: evidence, labelled a correlation.
07:41, Kubernetes. The agent's last snapshot from the bookings namespace: two of four pods in CrashLoopBackOff, last termination reason OOMKilled, 11 restarts in 5 minutes; a warning event for a failing readiness probe. Messages masked; no secrets, environment variables or specs.
07:45, PagerDuty in. The webhook subscription delivers the incident "bookings-api 5xx rate high", triggered. TicketResolve lines it up with the investigation, the tickets and a release of bookings-api at 07:30.
07:46, support knows. The support lead sees the investigation: an open PagerDuty incident, crashing pods, a release ten minutes before. She stops troubleshooting replies and sends a holding message: "We're aware of a problem with bookings this morning and our engineers are working on it." The next 30 tickets get the same.
08:05, acknowledged. The PagerDuty incident is acknowledged; the investigation shows it.
08:20, resolved. Engineering rolls back the 07:30 release (it loaded every class schedule into memory). The incident is resolved; Prometheus shows 5xx back to normal. The engineer confirms the cause in the investigation.
08:21, support follows up. "Bookings are working again. Sorry for the trouble this morning." An hour earlier than before, and without 40 cache-clearing replies.
Outbound, a different day. A predictive alert warns that bookings-api memory will hit its limit within 2 hours. It opens a PagerDuty event through the integration key. Three more warnings about the same problem are de-duplicated; the on-call engineer is paged once. When the alert resolves, so does the event.
Five more real-world scenarios
1. A pod that can't schedule
Situation. New pods stay pending after a scale-up.
How TR handles it. FailedScheduling warning events show in the investigation.
2. A latency spike that isn't the cause
Situation. Latency rose at the same time, but because of a traffic surge.
How TR handles it. It's labelled a correlation, not the cause; a person decides.
3. Secrets in pod specs
Situation. Pod specs contain environment variables with secrets.
How TR handles it. No secrets, environment variables or specs are ever sent.
4. Repeated alerts
Situation. A predictive alert fires five times for one problem.
How TR handles it. De-duplicated, so it doesn't page five times.
5. A namespace you didn't name
Situation. The problem is in a namespace you didn't include.
How TR handles it. The agent can only read the namespaces you name; add it if needed.
What support should do when an incident lines up
When an investigation shows an open PagerDuty incident, crashing pods or a metric spike matching the customer's report, a few habits help:
- Stop troubleshooting the customer's side. If the service is failing, clearing caches won't help and wastes the customer's time.
- Send a short holding message: you know there's a problem, engineers are working on it, and you'll follow up.
- Link new tickets to the investigation so the follow-up reaches everyone.
- Watch the incident's state. Acknowledged and resolved both show in the investigation.
- Follow up when it's resolved, and confirm with any customer who's still affected.
None of this needs engineering to stop and update support; the evidence arrives in the investigation on its own.
Before and after
Before. Forty replies about clearing caches while engineering fixed an outage, and support hearing about it in Slack an hour later.
After. Prometheus metrics, crashing pods and the PagerDuty incident in the investigation within minutes, a holding message instead of troubleshooting, and a follow-up when the incident resolved.
How to tell it's working
- Support learns about incidents within minutes of customers.
- Fewer troubleshooting replies during outages.
- One page per problem from predictive alerts.
Which source answers which question
- Is the service unhealthy right now? Prometheus: 5xx rate, latency, CPU and memory.
- Are its pods running? Kubernetes: phase, readiness, restarts, termination reasons, warnings.
- Does engineering already know? PagerDuty: the incident and its state.
Together they turn "the app keeps timing out" into a specific, known problem within minutes.
Who it's for
- Support leads who need to know when tickets are an incident.
- On-call engineers who want tickets next to their alerts.
- Platform teams who won't expose cluster APIs.
How it fits with the rest of TicketResolve
These sources feed investigations, incidents, the technical intelligence dashboard and the root-cause engine's diagnostics, including Kubernetes events. Predictive alerts send to PagerDuty.
Why the agent sits inside the cluster
Giving an outside service access to your Kubernetes API means opening a door into your cluster and trusting the other side with a credential. Running the agent inside, with a service account that can only get and list pods and events in named namespaces, keeps the door shut: the agent sends small snapshots out, and nothing reaches in. If you remove the agent, access ends; there's no credential left behind to rotate.
Mistakes to avoid
- Treating a correlation as the cause.
- Giving the agent wider permissions than get and list.
- Sending predictive alerts to PagerDuty without de-duplication in mind.
Do it in TicketResolve, step by step
Where: Integrations (connectors) and the investigation (/dashboard/investigate). You'll need: Prometheus access; the TicketResolve agent in your cluster; a PagerDuty Events API v2 integration key and a webhook subscription. Full guides: Connectors: everything TR-AI connects to and TR Investigate: from a ticket to a verified fix.
- Connect Prometheus for request rate, 5xx rate, p95 latency, CPU and memory.
- Run the agent in your cluster with a service account that can only get and list pods and events in named namespaces.
- Add a PagerDuty integration key (Events API v2) for predictive alerts out.
- Add a PagerDuty webhook subscription for incidents in.
- Open an investigation and read the metrics, pod snapshot and incidents.
- Confirm the cause yourself; these sources add evidence.
How to check it worked: an investigation shows Prometheus metrics, pod states and warning events, and any PagerDuty incident lined up with its tickets.
Frequently asked questions
What does Prometheus provide? Request rate, 5xx rate, p95 latency, CPU and memory for the affected service.
Is our cluster API exposed? No. The agent runs inside with a get-and-list service account.
What does the agent send? Pod phase, readiness and restarts, the last termination reason, and warning events.
Are secrets sent? No. No secrets, environment variables or specs.
Which Kubernetes problems are spotted? CrashLoopBackOff, OOMKilled, FailedScheduling and failing probes.
Does PagerDuty work both ways? Yes: predictive alerts out, incidents in.
Will one problem page several times? No. Events are de-duplicated.
Does any of this decide the root cause? No. It adds evidence; a person confirms.
What should support tell customers during an incident? A short holding message, then a follow-up when the incident is resolved.
Does engineering need to update support? No. Incident states and evidence arrive in the investigation on their own.
Can I remove the cluster agent later? Yes. Removing it ends access; there's no outside credential to rotate.
Are PagerDuty keys visible after saving? No. They're stored encrypted and never shown again.
Does any of this use AI? No. None of these sources uses AI.
Explore Topics
Written by
Ghulam Shabbir
Content creator and writer sharing insights and stories.


