Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Integrate Spike with Robusta

Add a Robusta webhook sink so Kubernetes alerts open incidents in Spike, alert your on-call team, and resolve when Robusta reports recovery.

Robusta is an open source Kubernetes troubleshooting and alert enrichment tool. It runs inside your cluster, picks up Prometheus alerts and Kubernetes events such as crash-looping pods and unavailable replicas, and forwards each one as a finding to the sinks you configure. Robusta's webhook sink posts every finding as JSON to a URL, so Spike can open an incident for it, page whoever is on call, and resolve the incident when the alert clears.

Nothing is installed besides the sink. You add one webhook_sink to the sinksConfig in your Robusta Helm values and upgrade the release; it covers every alert that cluster's Robusta forwards.

What Spike does with each finding

Robusta finding
What happens in Spike

A new alert, fingerprint not seen on an open incident

Opens an incident and pages your escalation policy

The same alert again, same fingerprint

Added as an event to the incident already open. It never pages again

A recovery: title starts with [RESOLVED] and the fingerprint matches an open incident

Resolves that incident

A recovery with no matching open incident

Dropped. It never opens an incident

The [RESOLVED] prefix on title is the only thing that marks a recovery. failure stays true on a recovery, so it is not used.

Recoveries exist only for Prometheus alerts. Findings that come from the Kubernetes API, such as a node not ready event, are not expected to send a recovery, so give the integration a resolve timer if you forward those.

One incident per alert

Spike identifies the incident by fingerprint. For Prometheus alerts that is the Alertmanager alert fingerprint; for everything else Robusta derives it from the subject, source and aggregation_key. Both are stable, so a firing alert that keeps re-notifying stays one incident, and its recovery finds that same incident. The same rule on two pods has two fingerprints and is two incidents.

How incidents are titled

Robusta's description is its own sentence about the fault, so whenever it is not empty it is the title, with whitespace collapsed. Every title is cut to at most 200 characters.

Some Prometheus rules template the alert's labels into their description annotation, which renders as a LABELS = map[...] tail. Robusta strips that tail before it sends the finding; if part of it is left over, Spike removes it. When description is null or empty, which happens for some native Kubernetes findings, Spike falls back in this order:

  1. title, with a leading [RESOLVED] removed. For example Pod checkout-api is crash looping.

  2. aggregation_key on subject.namespace/subject.name in cluster_name, for example KubePodCrashLooping on payments/checkout-api-7d9f8b6c5-x2k4p in prod-us-east-1. The namespace is left out when it is null, and the resource and cluster are each left out when they are missing. Without an aggregation_key this step is skipped.

  3. Robusta alert with no details.

A recovery gets this title instead:

That is Resolved: , then title without the [RESOLVED] prefix (aggregation_key if title is empty), then —, then subject.namespace/subject.name in cluster_name.

When the body has no usable fingerprint, Spike matches by title instead, so it skips description and uses title without its [RESOLVED] prefix (else aggregation_key, else Robusta alert with no details). That keeps the title identical when the alert fires and when it recovers. A fingerprint counts as usable when it is a non-empty string or a number and is not an unexpanded template variable. Otherwise the title is for display only; matching is done on fingerprint.

Severity

Spike takes the incident severity from the payload's severity keys before alert rules run. A Robusta body has two: Robusta's own severity (HIGH, LOW, INFO or DEBUG) and, for Prometheus alerts, the alert's severity label at subject.labels.severity (such as warning or critical), because Robusta copies the alert's labels and annotations into subject.labels and subject.annotations. When both are present the Prometheus label wins, so the severity Spike uses, and the value an alert rule sees as severity, is the label's. In the example below the label is warning, which Robusta reports as LOW, and the incident gets SEV2; a critical label gives SEV1. If size_limit cut subject from the body, only Robusta's own value is left: HIGH gives SEV1, and LOW, INFO and DEBUG give SEV3.

To route or suppress by severity, write the rule on the label values (warning, critical). Rules that match HIGH or LOW only match findings that carry no Prometheus severity label, such as native Kubernetes findings. Robusta's original value stays in the body on the incident page. Read more about priority and severity.

Prerequisites

  • Robusta installed in your cluster with Helm, and permission to change its values and upgrade the release

  • A Robusta integration in Spike and its webhook URL

  • Cluster egress to hooks.spike.sh. Nothing needs to be opened inbound

Step 1 — Create the integration in Spike

In Spike, go to Integrations → Add integration → Robusta, 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.

Create integration and service on our dashboard

Step 2 — Add a webhook sink in Robusta

  1. Open the Helm values file you installed Robusta with (generated_values.yaml if you used the Robusta CLI).

  2. Under sinksConfig, add a webhook_sink:

Field
What to put in it

name

Required. Anything you will recognise, such as spike_sink

url

Required. The full Spike webhook URL from Step 1, including /push-events

format

Required: json, so Robusta posts one flat JSON object per finding, as shown in the payload reference. Robusta's default is text, a plain-text body Spike cannot read: every finding would arrive with no details and land on one incident

size_limit

Recommended: 16384. Maximum body size in bytes; default 4096. Robusta drops the first key that does not fit and every key after it, fingerprint included

Keep your existing sinks in the list; add this one next to them.

Recoveries come from Alertmanager. Leave send_resolved: true on your Alertmanager receiver for Robusta (the default), and keep the Prometheus playbook at status: all in the Robusta values, so Robusta sees the resolved alerts and sends the [RESOLVED] findings.

  1. Apply it:

clusterName must be set: it becomes cluster_name, the last part of the fallback and recovery titles.

Step 3 — Check it works

Wait for the next alert Robusta forwards, or post a test finding by hand. A firing alert opens an incident, and posting the same body again with "title": "[RESOLVED] Pod is crash looping." and the same fingerprint resolves it:

The same body, formatted, is in the payload reference below. For the recovery, send the second body.

Payload reference

Robusta posts application/json, one finding per request. A firing alert looks like this:

The recovery has the same fingerprint, a [RESOLVED] prefix on title, and an ends_at:

Field
What Spike does with it

fingerprint

Identity of the alert across firing and recovery. Required for reliable grouping and resolving

title

The finding title. A leading [RESOLVED] marks a recovery, and it is the fallback title when description is empty

description

Robusta's sentence about the fault. The title whenever it is not empty

cluster_name

The last part of the fallback and recovery titles

subject.namespace, subject.name

The namespace/name part of the fallback and recovery titles

Everything else

Kept on the incident and shown on the incident page

Things worth knowing

  • Only Prometheus alerts recover. Kubernetes-API findings have no recovery; use a resolve timer for them.

  • A recovery never opens an incident. If the incident was already resolved in Spike, or the firing alert never reached Spike, the recovery is dropped.

  • The URL is the credential. Guard the webhook URL like any Spike integration URL.

Troubleshooting

Nothing arrives in Spike

Confirm the sink is in the running config (helm get values robusta), that url is the full Spike URL including /push-events, and that the Robusta runner pod can reach hooks.spike.sh. Check the runner logs for webhook errors.

Incidents open but never resolve

The recovery needs the same fingerprint as the incident. Robusta adds keys up to size_limit and stops at the first that does not fit, so a long title or description drops fingerprint and everything after it; the recovery's title is 11 bytes longer than the firing one ([RESOLVED] ), so it can lose its fingerprint when the firing finding kept it. Set size_limit: 16384 and upgrade the release. The same cut makes unrelated findings with the same title merge into one incident. Also remember that only Prometheus alerts send recoveries.

The title is not what I expected

The title is Robusta's description whenever it is not empty, otherwise title, then aggregation_key with the namespace, name and cluster. Use a Title Remapper to write your own from the payload, for example {{data.body.aggregation_key}} on {{data.body.cluster_name}}.

Last updated