Skip to content

@hyperdx/common-utils@0.28.0

Choose a tag to compare

@github-actions github-actions released this 28 Aug 22:20
6e0a25c

Minor Changes

  • 0558f77: Record and show which notification target an evaluation's delivery time went to. webhookDurationMs was a single number covering the whole delivery, and because targets are dispatched concurrently the slowest one sets it — so a multi-target alert reported a figure with no way to tell which webhook was responsible, or that the other targets were fine.

    Each dispatch is now timed individually and aggregated per target across the evaluation, since a grouped alert notifies the same target once per firing group and again on resolve. One entry per distinct target carries its webhook id, display name, summed duration, how many dispatches it took, and how many failed. The evaluation history's "Notification duration" cell expands in place to show the breakdown.

    Stored per evaluation rather than per dispatch: a 50-group alert notifying 10 targets would otherwise write 500 entries onto every history row. The array is capped at ALERT_NOTIFICATION_TARGETS_LIMIT and sorted slowest-first, so the cap drops the least interesting rows. Records written before this change keep rendering their total with nothing to expand.

  • df4a7a5: Add a new inline alert source that persists its own chart config directly on the alert, so alerts no longer require a saved search (logs) or a dashboard tile (metrics). The config is the same shape a dashboard tile stores — builder configs on log/trace/metric sources plus raw SQL (Line/Stacked Bar/Number display types); PromQL is rejected. The internal alerts API accepts and returns the new source, and the check-alerts task evaluates inline alerts through the same code path as tile alerts (including group-by and multi-window behavior). Notifications for inline alerts link to the chart explorer seeded with the alert's config over the alerting window, and default their title to the config's name. Backend only — the creation/edit UI and external API v2 support land separately.

Patch Changes

  • f11038e: feat: Persist variable-keyed dashboard filter value state
  • f9f7d5b: feat: Add completions for PromQL variables
  • 82852c3: fix: Fix @/* aliases leaking into the local type declarations
  • de9038e: feat: Distribute exact-match lucene variable references
  • 5fc3341: feat: Support dashboard variables in the MCP server
  • 7662fae: feat: Show warnings for invalid promql variable usage
  • 93b51b1: feat: Add generated PromQL preview
  • 64326d0: feat: Support variable substitution in PromQL charts