Integrate Spike with Harness FME
Send Harness FME (formerly Split) metric alerts to Spike so a feature flag that degrades a metric alerts your on-call team by phone, SMS, Slack or Teams.
Harness Feature Management & Experimentation (FME, formerly Split) measures what a feature flag does to your metrics. When a metric moves the wrong way under a treatment, FME raises a metric alert. Point FME's metric alert webhook at a Spike integration URL and that alert pages your on-call rotation.
Nothing is installed anywhere. One webhook, configured once in FME, covers every flag and experiment it is set up for.
What Spike does with each alert
Every metric alert FME sends (type is METRIC_ALERT) opens an incident and pages. A repeat of the same alert joins the incident that is already open instead of paging again. Alerts where data.direction is DESIRED open incidents too. Nothing in the body closes one.
Incident identity
Spike identifies the alert by these three fields together:
source.id
Id of the feature flag or experiment
data.environment.id
The FME environment
data.metric.id
The metric
The same flag moving the same metric in the same environment is one incident, even when the readings, policy name or threshold change between sends. A different metric, flag or environment is a separate incident.
An id counts only if it is a non-empty string (after trimming) or a number (0 counts), and is not an unexpanded template variable such as $id, ${id}, {{id}} or %id%. Ids are matched however they are spelled (number or text, surrounding spaces ignored). If any of the three is unusable, Spike matches on the incident title instead, and the title then carries no readings.
Incident title
The payload has no sentence from Harness about the fault, so Spike builds the title. When all three ids are usable and both values are numbers (or numeric strings), the baseline is not 0 and the change is at least 1%, the title carries the readings:
Checkout conversion rate down 16% (on 0.035 vs off 0.041), undesired — new_checkout_flow in ProductionThe percentage is
(comparisonValue - baselineValue) / |baselineValue| × 100, rounded, computed from the two values.data.relativeImpactis not read because its scale is undocumented.upordowncomes from the sign of that change., undesiredor, desiredcomes fromdata.directionand is left out for any other value.Numbers from 10 up are whole with thousands separators (
1,480); below 10 they keep two significant digits. An empty treatment name is left out.
Otherwise the title is plain and identical on every send:
The word is
degradedforUNDESIRED,improvedforDESIREDandalertfor anything else or a missing direction. With no metric name it startsMetric.Missing parts are dropped with their separator words: no
inwithout an environment, no—without a flag and environment.With no metric, flag or environment name at all:
Harness FME alert with no details.
Whitespace is collapsed and titles are capped at 200 characters: the readings in brackets are cut first, then the metric name, and the flag and environment stay whole. Ids, URLs and timestamps never appear in the title.
Severity
Spike does not read a severity from the payload, so incidents open at your integration's default. To set severity from the alert, write an alert rule on data.direction. Read more about priority and severity.
Prerequisites
FME Administrator access in Harness, which creating the webhook requires
Permission to create or edit Harness connectors (
core_connector_edit) at the account level. Harness implements metric alert webhooks as connectorsA Harness FME integration in Spike and its webhook URL
Nothing to open on your own network. FME calls out to Spike
Step 1 — Create the integration in Spike
In Spike, go to Integrations → Add integration → Harness FME, 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 Harness FME
From the Harness FME navigation menu, click FME Settings → Integrations and select Webhooks from the categories menu.
Click Add on the Outgoing Webhook (Metric Alerts) integration and select the project to add the webhook to.
Under Environments, select the environments whose alerts should page through Spike.
Select the alert types that should be sent: All alert policies, Metric alert policies, Key metric significance or Guardrail metric significance. They apply to both feature flag and experiment alerts.
Paste the URL from Step 1 as the webhook URL. Harness documents no signing header or secret for this webhook, so there is nothing else to fill in. The token in the URL is the credential; treat it like a password. Click Send Test Message to check the connection.
Click Save to create the webhook.
These steps follow Harness's metric alert webhook setup docs. If a label in your account differs, follow the closest equivalent there.
Step 3 — Make sure alerts are switched on
A webhook only receives alerts that FME raises. In FME, make sure an alert policy exists on the metrics you care about. Significance alerts on key and guardrail metrics reach Spike when you selected those alert types in Step 2.
Step 4 — Confirm it end to end
Send a test message, or wait for the first real alert. An incident opens in Spike on the service you attached, with the metric, flag and environment in the title. A test message that names none of them opens one titled Harness FME alert with no details.
Payload reference
FME sends a JSON POST with Content-Type: application/json. A full alert looks like this:
Fields Spike reads
source.id
Yes
Incident identity
data.environment.id
Yes
Incident identity
data.metric.id
Yes
Incident identity
data.metric.name
No
Title: starts it (Metric when empty)
source.name
No
Title: the flag or experiment
data.environment.name
No
Title: where it happened
data.direction
No
Title: undesired / desired, or degraded / improved
data.comparisonValue
No
Title: reading and percentage (number or numeric string)
data.baselineValue
No
Title: reading and percentage (number or numeric string)
data.comparisonTreatment
No
Title: name beside the comparison reading
data.baselineTreatment
No
Title: name beside the baseline reading
Every other field (type, firedAt, firedAtMs, integrationId, source.type, source.url, alertType, absoluteImpact, relativeImpact, pValue, targetingRule, metric.url, metricCategory.* and alertPolicy.*) is kept on the incident and visible on the incident page, but does not change the title or identity.
Things worth knowing
No recovery. Resolve incidents in Spike yourself; Harness FME does not tell Spike when an alert clears.
Repeats. Harness does not document whether FME re-sends an alert. If it does, a repeat with the same identity joins the open incident, even when the readings have moved.
Several Spike integrations are fine. Create one per team and point the matching FME webhook at each.
Unverified. This guide follows Harness's published schema; the sample values are illustrative.
Troubleshooting
Disclaimer: These integration instructions are offered independently by Spike.sh, and Spike.sh is not affiliated with nor a partner of Harness Inc.
Last updated

