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

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.

Harness documents no recovery or resolve webhook, so Spike never resolves a Harness FME incident by itself. Resolve it in Spike once the flag or metric is dealt with. A resolve timer is a reasonable backstop.

Incident identity

Spike identifies the alert by these three fields together:

Field
What it is

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 Production
  • The percentage is (comparisonValue - baselineValue) / |baselineValue| × 100, rounded, computed from the two values. data.relativeImpact is not read because its scale is undocumented.

  • up or down comes from the sign of that change. , undesired or , desired comes from data.direction and 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 degraded for UNDESIRED, improved for DESIRED and alert for anything else or a missing direction. With no metric name it starts Metric.

  • Missing parts are dropped with their separator words: no in without 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 connectors

  • A 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.

Create integration and service on our dashboard

Step 2 — Add the webhook in Harness FME

  1. From the Harness FME navigation menu, click FME Settings → Integrations and select Webhooks from the categories menu.

  2. Click Add on the Outgoing Webhook (Metric Alerts) integration and select the project to add the webhook to.

  3. Under Environments, select the environments whose alerts should page through Spike.

  4. 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.

  5. 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.

  6. 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

Field
Required
Used for

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

Nothing arrives in Spike

Check that the webhook URL is the full https://hooks.spike.sh/<your-token>/push-events with nothing appended and that the integration is not archived in Spike. Then check that an alert policy exists on the metric, because FME only sends alerts it raises.

Every alert opens its own incident

Open two incidents and compare the payloads. If source.id, data.metric.id or data.environment.id differ, they are separate alerts and separate incidents by design. If source.id, data.environment.id or data.metric.id is unusable, Spike matches on the title instead.

The incident never resolves

Expected. Harness FME sends no recovery. Resolve the incident in Spike, or set a resolve timer.

The title has no percentage or readings

Readings are left out when an id is unusable, a value is missing or not numeric, the baseline is 0, the values are equal, or the change is under 1%.

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