Skip to content

Alerts re-notify on every evaluation while firing #2464

Done

Description

@filmon-arefayne

A firing alert sends a notification on every evaluation interval for as long as the condition persists (e.g. every 5m).
For a sustained condition like high node memory, this produces a continuous stream of duplicate notifications until it resolves.
There's no setting to notify only on the OK→ALERT transition, nor a re-notification interval / cooldown.
This option would reduce massively the amount of alert we are receiving at the moment.

Current behavior (packages/api/src/tasks/checkAlerts/index.ts, HyperDX 2.27.0)
The ALERT notification is sent unconditionally whenever the threshold is exceeded:

if (doesExceedThreshold(alert, value)) {
  history.state = AlertState.ALERT;
  history.counts += 1;
  await trySendNotification({ state: AlertState.ALERT, ... });
}

By contrast, the resolve notification is edge-gated, firing only on the transition:

if (previousHistory?.state === AlertState.ALERT && currentHistory.state === AlertState.OK) {
  await trySendNotification({ state: AlertState.OK, ... });
}

Version: HyperDX 2.27.0

Activity

  1. niladrix719 commented on Jul 30, 2026

    @niladrix719
    Contributor

    I think it will be good to have a renotify Interval Minutes option and by default only notify on Transition

  2. added
    Backend
    on Aug 24, 2026
  3. bcanvural commented on Nov 30, 2026

    @bcanvural
    Contributor

    @pulpdrew #2754 fixes this but has been idle since July and now conflicts with main. Would you accept a fresh PR that builds on it and adds the re-notify interval as an opt-in alert setting, with the current behaviour as the default? I can open one.

  4. pulpdrew commented on Nov 30, 2026

    @pulpdrew
    Contributor

    @bcanvural yes, we can review a fresh PR implementing this as an opt-in setting

  5. added a commit that references this issue on Dec 1, 2026
    4d26b57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Backend

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions