Dev Ops · n8n

Alert Before Users Notice: Detect Rising API Latency Early

Catch performance regressions early — monitor your API's response times and alert the on-call engineer when latency creeps above healthy levels.

difficulty Advancedsetup 40 minresult You're warned about latency degradation before it turns into an outage or user complaints.
  1. 1

    Probe the Endpoint

    Add a Schedule Trigger every minute and an HTTP Request node measuring the response time of a key endpoint.

  2. 2

    Track a Rolling Average

    Add a Code node maintaining a rolling latency baseline in static data.

  3. 3

    Detect Degradation

    Add an IF node continuing when recent latency exceeds the baseline by a set factor for several consecutive checks.

  4. 4

    Page On-Call

    Add a PagerDuty node creating an incident with the current and baseline latency.

  5. 5

    Activate and Tune

    Activate the workflow and adjust thresholds so transient blips don't page needlessly.

Frequently asked questions

Why require consecutive breaches?

Requiring a sustained rise avoids paging for a single slow request or momentary spike.

Can I monitor multiple endpoints?

Yes — loop over a list of endpoints, each with its own baseline, in the same workflow.

About this recipe. Recipes on FlowRecipesHub are written for business owners, not developers, and are tested before publishing — how recipes get made. Some ingredient links are affiliate links that cost you nothing — full disclosure.