Integrate Spike with Metoro
Send Metoro alerts to Spike through a webhook destination so a firing alert reaches your on-call team, and resolves when Metoro reports recovery.
Metoro is eBPF-based observability for Kubernetes: metrics, logs and traces collected from the kernel with no code changes, and alerts on any of them. Metoro's Webhook destination posts an alert to any HTTP endpoint. Point it at a Spike integration URL and a firing alert pages your on-call rotation, every later notification about that same firing lands on the incident already open instead of paging again, and the incident resolves itself when Metoro sends the recovery.
Nothing is installed anywhere. One webhook, added once on Metoro's integrations page, can be the destination for every alert in the organisation.
What Spike does with each notification
Every notification carries a state — Metoro's $alert_state, which the vendor documents as "either 'firing' or 'resolved'". That field alone decides what Spike does:
state
What happens in Spike
firing
Opens an incident for that firing and pages your escalation policy, or adds an event to the one already open
resolved
Auto-resolves the open incident. Dropped when nothing is open — it never opens an incident of its own
cleared, closed and ok are read as resolved too, in any casing. Nothing else is read as a recovery. In particular resolved_at is kept on the incident and never interpreted: on a firing notification it can arrive as "", as "0" or as the literal "$resolved_at" depending on how Metoro substitutes it, and a recovery guessed out of a timestamp would stop the paging for a problem nobody has fixed.
Incident identity
Spike identifies the incident by alert_fire_uuid, Metoro's $alert_fire_uuid — "the UUID of the specific alert fire instance". It names one firing of one alert and is carried unchanged onto that firing's recovery, so repeats collapse onto the open incident and the recovery lands on the incident its own firing opened.
alert_fire_uuid
That uuid. This is the normal case
alert_uuid only
The alert definition's uuid
Neither
The incident title, which is why a title with no uuid behind it never carries a number. See Incident titles
A uuid that arrives as a variable Metoro did not substitute — the literal $alert_fire_uuid, or {{alert_fire_uuid}}, <alert_fire_uuid>, %alert_fire_uuid% — counts as no uuid at all, so it can never tie two different alerts together.
alert_uuid is a fallback and never a preference, because every group of a grouped alert shares one alert_uuid. Preferring it would let one group's recovery resolve a sibling group's incident — a second service's page going quiet while it is still broken.
Incident titles
description is Metoro's $alert_description — the sentence your own alert rule gives for what is wrong — and whenever it is filled in, it is the title:
Nothing is added to it. A description longer than 200 characters is cut at the last whole word that fits; the full text stays on the incident page.
When the description box is empty, the title is built out of the parts Metoro's own alert screen shows in columns:
That is {alert_name} — {metric_name} {value} on {where}, and whichever of those parts your payload supports. It needs alert_name.
{where} is service, then environment, then the first pair of the group-by attributes. Both names go in when both read (checkout-api (production)), because an alert on checkout-api in staging is not the one in production. It goes last in the line so that shortening can never take it, and the measurement clause is the first thing dropped if the line runs past 200 characters.
Values are rounded for reading rather than printed raw: whole numbers from ten up, two significant digits below it, and thousands separators (4.7, 0.17, 13,483). A value that is not a plain number — 4.7ms, an empty string, a variable Metoro did not substitute — is treated as absent, and the title keeps the metric's name without a number rather than printing something that is not one.
Recoveries
A recovery is Recovered: followed by the description (or, when that is empty, the alert name), with nothing in it that moves:
The value on a recovery is the value that came back under the threshold, which is not news, so it is not in the line. Spike still sends the opening title along with the recovery under the hood, so the resolve lands whether it matched on the uuid or on the title.
Fallbacks
A description
That sentence, cut at a whole word past 200 characters
No description, but an alert name
{alert_name} — {metric_name} {value} on {where}
A Guardian notification
Its title, else its message, cut at a whole word past 200 characters
Nothing readable
Metoro alert with no details
Severity
Metoro documents no severity and no threshold variable for alerts, so there is nothing in the body for Spike to read and a Metoro incident arrives without a severity.
Set it with an alert routing rule instead. Add an Incident details condition on alert_name or service and give each one the severity and escalation policy you want — for example service equals checkout-api → Mark severity as SEV1. Read more about priority and severity.
Prerequisites
A Metoro organization, and an account that can reach the Integrations page
At least one alert to attach the webhook to
A Metoro integration in Spike and its webhook URL
Step 1 — Create the integration in Spike
In Spike, go to Integrations → Add integration → Metoro, attach it to a service and an escalation policy, and copy the webhook URL. It looks like https://hooks.spike.sh/<your-token>/push-events.
Step 2 — Add the webhook in Metoro
Open the integrations page: In Metoro, go to Integrations (
https://us-east.metoro.io/integrations) and click the Add Webhook button.Name it — Name is required. Use something you will recognise in the alert wizard's destination list, for example
Spike - payments on-call.Point it at Spike — URL is required. Paste the webhook URL you copied in Step 1.
Leave HTTP Method as
POST. That is Metoro's default and the only method Spike accepts.Leave Headers empty. The token in the URL is what authenticates the request to Spike, so there is nothing else to send. Metoro's own Rootly guide adds an
Authorizationheader because Rootly needs one; Spike does not.Paste the body template. Body Template is optional as far as Metoro is concerned and required for Spike — copy the JSON from the next section into it exactly as written.
Submit to save the webhook. It is now selectable as a destination on any alert.
The body template
Paste this into Metoro's Body Template field. The $-prefixed values are Metoro's own alert variables and Metoro substitutes them at delivery time; the key names on the left are what Spike reads, so keep all thirteen exactly as written:
Three of those lines carry the behaviour and should never be edited out:
stateis the only thing that tells a firing from a recovery. Without it every recovery opens a new incident and nothing ever auto-resolves.alert_fire_uuidis how Spike recognises the same firing twice. Without it repeats and recoveries have to be matched by title.descriptionoralert_name— at least one — is what the incident is called. With neither, the incident readsMetoro alert with no details.
The rest is what the responder reads on the incident page. Keep the quotes around every value, including the uuids and $breaching_datapoint_value: Metoro substitutes plain text, so an unquoted value can produce JSON that does not parse.
The body Metoro sends
With that template on the webhook, a firing alert reaches Spike like this:
That opens an incident titled checkout-api is returning 5xx on more than 2% of requests for the last 5 minutes.
When the alert recovers, the same alert_fire_uuid comes back with state flipped:
Spike reads resolved, finds the open incident by alert_fire_uuid, and closes it.
Step 3 — Select the webhook as the alert's destination
Webhooks are added once and then chosen per alert.
Open the alert in Metoro — pick an existing one or create one in the alert wizard.
In the Select Destination section, click Add Destination.
Choose Webhook from the destination type dropdown, and pick the webhook you created in Step 2.
Tick Notify when alarm recovers. This is the step that makes auto-resolution work: without it Metoro only sends the firing notification and the incident stays open until somebody resolves it by hand.
The recovery option expands into a second destination selector, for the resolved notification. Metoro's own words: "You can use the same webhook for both or configure different endpoints." Pick the same Spike webhook — Spike tells the two apart from
state, and a recovery sent to a different Spike integration would not find the incident.Save the alert.
Repeat for every alert that should page on-call.
Step 4 — Confirm with a real alert
Metoro has no test-webhook button, so the integration is confirmed with an alert that fires for real. The quickest way is a temporary alert with a threshold you know is already breached — a CPU or request-count alert with the threshold set near zero — pointed at the Spike webhook.
An incident on the right service, with the right escalation policy attached and the alert's own description as its title, means Metoro can reach Spike and the wiring is done. Set the threshold back, or delete the alert, and the recovery notification closes the incident for you.
Payload reference
Every field in the template, the Metoro variable behind it, and what Spike does with it:
state
$alert_state
Firing or recovery. Required for auto-resolution
alert_fire_uuid
$alert_fire_uuid
Incident identity. Required for reliable grouping
alert_uuid
$alert_uuid
Fallback identity, for a payload with no fire uuid
description
$alert_description
The incident title whenever it is filled in
alert_name
$alert_name
Heads the built title when description is empty
metric_name
$metric_name
Part of the built title
value
$breaching_datapoint_value
The number in a built title, when a uuid is present
attributes
$attributes
The place in a built title, when service and environment are empty
service
$service (Deprecated)
First choice for the place in a built title
environment
$environment (Deprecated)
Second choice for the place
deep_link
$deep_link
Kept on the incident so it links back to Metoro. Never in the title
fired_at
$fired_at
Kept on the incident. Never in the title
resolved_at
$resolved_at
Kept on the incident. Never read as a state
Metoro documents more variables than the template uses — $breaching_datapoint_time among them. Add them under names of your own if your responders want them on the incident page; Spike stores the whole body either way and ignores the keys it does not know.
Rewriting the title
Point a Title Remapper at the Metoro integration to build your own title out of that body. A remapper replaces the whole title, so everything described under Incident titles goes with it. This one titles by rule name and service, which is the shape teams who read alerts by rule usually want:
Open the remapper against a real incident first — the preview shows the body your own template produces, which is the quickest way to find the field you want.
Things worth knowing
One incident per firing, not per alert. A grouped alert fires once per group, each with its own
alert_fire_uuid, so two namespaces breaching the same rule are two incidents in Spike — which is what you want when they page different people.Repeats do not page twice. Any notification carrying an
alert_fire_uuidSpike has already seen is added as an event to the incident already open.A recovery with nothing open is dropped. If you resolved the incident in Spike before the alert recovered in Metoro, the
resolvednotification is ignored rather than reopening anything.Resolving in Spike does not change anything in Metoro. The alert is still firing there; the next notification about that same firing joins the incident Spike reopens for it.
Guardian (AI-SRE) notifications are not mapped yet. Metoro's webhooks also carry AI SRE events — anomaly detection, autonomous investigations, deployment verification. One pointed at a Metoro integration URL opens an incident titled from its
title, falling back to itsmessage, so it is readable rather than blank, but itstypeanddatafields are not interpreted and nothing auto-resolves it. Give Guardian its own webhook and its own Spike integration if you want to page on it, so its incidents do not sit in the same service as your alerts.
Troubleshooting
Last updated

