diff --git a/.changeset/adhoc-filter-kv-rewrite.md b/.changeset/adhoc-filter-kv-rewrite.md deleted file mode 100644 index 7b0fd7be7b..0000000000 --- a/.changeset/adhoc-filter-kv-rewrite.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@hyperdx/common-utils': patch -'@hyperdx/app': patch ---- - -fix: use the Map KV items index for ad hoc and dashboard filters on Map keys. -These filters render `toString(Map['k']) = 'v'`, which the `has(, ...)` -rewrite previously skipped, so the query decoded the whole Map for every row. diff --git a/.changeset/alert-renotify-interval.md b/.changeset/alert-renotify-interval.md deleted file mode 100644 index b8d46b1965..0000000000 --- a/.changeset/alert-renotify-interval.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@hyperdx/common-utils': minor -'@hyperdx/app': minor -'@hyperdx/api': minor ---- - -feat: alerts get an opt-in "Re-notify every N minutes" setting (`renotifyIntervalMinutes`). While an alert keeps firing it notifies at most once per interval; unset keeps today's behaviour of notifying on every evaluation. Resolve notifications are unchanged. diff --git a/.changeset/anthropic-sonnet-5-5.md b/.changeset/anthropic-sonnet-5-5.md deleted file mode 100644 index e4a57a78ea..0000000000 --- a/.changeset/anthropic-sonnet-5-5.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@hyperdx/api': patch -'@hyperdx/app': patch ---- - -Use Claude Sonnet 5.5 by default for the Anthropic assistant and include its rates in LLM cost estimates. diff --git a/.changeset/clickhouse-version-on-proxy-spans.md b/.changeset/clickhouse-version-on-proxy-spans.md deleted file mode 100644 index db7d385c71..0000000000 --- a/.changeset/clickhouse-version-on-proxy-spans.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@hyperdx/api': patch ---- - -feat: record the ClickHouse server version on ClickHouse proxy spans, as -`hyperdx.clickhouse_proxy.clickhouse.version`, so query errors and latency can -be compared across ClickHouse upgrades. diff --git a/.changeset/collapsed-help-button-name.md b/.changeset/collapsed-help-button-name.md deleted file mode 100644 index 7f9df0db60..0000000000 --- a/.changeset/collapsed-help-button-name.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@hyperdx/app': patch ---- - -fix: give the collapsed side nav's Help button an accessible name. With the nav -collapsed to icons, screen readers announced it only as "button" (or as "New -updates available" when a release was unseen). The Help label now stays in -the page, visually hidden. diff --git a/.changeset/collapsed-nav-accessible-names.md b/.changeset/collapsed-nav-accessible-names.md deleted file mode 100644 index 85da5bb89b..0000000000 --- a/.changeset/collapsed-nav-accessible-names.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@hyperdx/app': patch ---- - -fix: give the collapsed side nav's links an accessible name. With the nav -collapsed to icons, the page links and the logo link had no text, so screen -readers announced them only as "link". The labels now stay in the page, -visually hidden. diff --git a/.changeset/column-fit-to-content.md b/.changeset/column-fit-to-content.md deleted file mode 100644 index 4034dbeaf9..0000000000 --- a/.changeset/column-fit-to-content.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@hyperdx/app': patch ---- - -feat: double-click a column's resize handle in search results to fit the column -to its content. A fitted column stops at 600px or half the visible table width, -and the last column goes back to filling the table. diff --git a/.changeset/confirm-above-modals.md b/.changeset/confirm-above-modals.md deleted file mode 100644 index 0bbf540ec1..0000000000 --- a/.changeset/confirm-above-modals.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@hyperdx/app': patch ---- - -fix: the "discard unsaved changes" confirm no longer opens behind the edit alert modal, which left the modal impossible to close diff --git a/.changeset/daily-axis-date-ticks.md b/.changeset/daily-axis-date-ticks.md deleted file mode 100644 index 7dd8689798..0000000000 --- a/.changeset/daily-axis-date-ticks.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -'@hyperdx/app': patch -'@hyperdx/common-utils': patch ---- - -fix: show the date on every x-axis tick of time charts at daily granularity or -coarser, instead of repeating the time (e.g. `00:00:00`) after the first tick. -When a daily bucket doesn't start at midnight in the display time zone, the tick -shows the date and time. diff --git a/.changeset/dashboard-filter-reorder.md b/.changeset/dashboard-filter-reorder.md deleted file mode 100644 index 93e4188848..0000000000 --- a/.changeset/dashboard-filter-reorder.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@hyperdx/app': patch ---- - -feat: let users reorder dashboard filters and variables. The edit filters modal -now shows up/down controls on each filter, and that order drives both the modal -list and the filter bar. diff --git a/.changeset/dashboard-link-globals.md b/.changeset/dashboard-link-globals.md deleted file mode 100644 index f4228747ee..0000000000 --- a/.changeset/dashboard-link-globals.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -'@hyperdx/common-utils': patch -'@hyperdx/app': patch -'@hyperdx/api': patch ---- - -feat: more global vars for dashboard links - -- Row-click link templates can use `{{__from}}`, `{{__to}}`, `{{__timezone}}`, - `{{__url_time_range}}`, `{{__all_variables}}`, and a - `{{formatDate "iso"|"seconds"|"ms"}}` helper. External links now carry - the time range this way. -- Dashboard links can set a destination filter by variable name - (`kind: "variableTemplate"`), so static list filters can be prefilled. -- Dashboard links can carry the current dashboard's filters over - (`includeCurrentFilters`). -- Markdown tiles expand `$__from`, `$__to`, `$__timezone`, - `$__url_time_range` and `$__all_variables`, and a new `${var:url}` format - URL-encodes variable values. diff --git a/.changeset/dashboard-live-refresh-interval.md b/.changeset/dashboard-live-refresh-interval.md deleted file mode 100644 index bdce514a3c..0000000000 --- a/.changeset/dashboard-live-refresh-interval.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@hyperdx/app': patch ---- - -feat: Pick the dashboard live mode refresh interval, from 30s up to the time -range's default diff --git a/.changeset/debug-info-clickhouse-version.md b/.changeset/debug-info-clickhouse-version.md deleted file mode 100644 index edfb2d8135..0000000000 --- a/.changeset/debug-info-clickhouse-version.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@hyperdx/app': patch ---- - -feat: include each connection's ClickHouse server version in the "Copy debug info" report diff --git a/.changeset/emerging-signals-one-tree.md b/.changeset/emerging-signals-one-tree.md deleted file mode 100644 index d5638c74b1..0000000000 --- a/.changeset/emerging-signals-one-tree.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@hyperdx/common-utils': patch -'@hyperdx/api': patch ---- - -fix: MCP `emerging_signals` mines both windows in one Drain tree, in a fixed -order (baseline first), and compares them by cluster, so a token that is -constant in one window and varies in the other no longer splits a pattern into -one "new" and one "gone". New messages that Drain merges into a baseline pattern -are reported as `new_variant`, so they aren't hidden by the merge, and baseline -messages that stop while the rest of their pattern goes on are reported as -`gone_variant`. The baseline window excludes its end, so a row at the boundary -is counted once. diff --git a/.changeset/enable-alert-details-everywhere.md b/.changeset/enable-alert-details-everywhere.md deleted file mode 100644 index 280187cf61..0000000000 --- a/.changeset/enable-alert-details-everywhere.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@hyperdx/app': minor ---- - -feat: enable the alert details page (`/alerts/:id`) in all deployments. Removes -the `NEXT_PUBLIC_ENABLE_ALERT_DETAILS` flag that previously gated it, so private, -OSS, and LogHouse environments now get the same alert details page already -enabled in cloud. diff --git a/.changeset/exemplar-overlay.md b/.changeset/exemplar-overlay.md deleted file mode 100644 index 19c0961983..0000000000 --- a/.changeset/exemplar-overlay.md +++ /dev/null @@ -1,27 +0,0 @@ ---- -'@hyperdx/common-utils': minor -'@hyperdx/app': minor -'@hyperdx/api': patch ---- - -feat: exemplar overlay for metric and PromQL time charts - -Time charts on metric and PromQL sources can overlay exemplars — individual -trace-linked data points — via the "Show exemplars" toggle in the chart -editor's display settings. Hovering a marker shows the exemplar's own value and time plus trace metadata -from a configurable trace source, with a button to open the trace. - -Off by default for the whole deployment behind `NEXT_PUBLIC_ENABLE_EXEMPLARS`, -and per-chart behind the toggle. How many markers a chart draws is a team -setting, Max Exemplars per Chart. - -Markers are sampled the way Grafana samples them: bucketed at the chart's -granularity, keeping the slowest trace in each bucket plus any further trace more -than 2σ below it. The overlay shows the shape of the latency distribution rather -than tracing the top of the chart. - -A marker sits at the trace's own measurement, so it is only shown where that is -honest: a single non-ratio histogram series with no group by, aggregated in a way -that leaves the axis on the observation scale, and for PromQL an expression that -plots a duration. Markers outside the rendered window, or below a fitted y-axis -floor, are dropped rather than moved — and the count is surfaced on the chart. diff --git a/.changeset/exemplars-agent-surface.md b/.changeset/exemplars-agent-surface.md deleted file mode 100644 index e529f57706..0000000000 --- a/.changeset/exemplars-agent-surface.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@hyperdx/api': minor ---- - -feat: accept exemplar settings on API- and agent-authored dashboard tiles - -`enableExemplars` and `exemplarTraceSourceId` are now accepted on line and -stacked-bar tiles through the external v2 API and the MCP dashboard tools, -survive the tile conversion in both directions, and are documented in the -OpenAPI spec. Previously they validated on write and were dropped before -persistence, so they could not be set through any surface. - -`exemplarTraceSourceId` is checked three ways, because a marker's "view trace" -link is only as good as the source behind it: an ObjectId on both surfaces, the -source must exist for the team, and it must actually be a Trace source. The -existence and kind checks mirror the heatmap gate. Without them a well-formed id -for a metric source saved cleanly and left every marker linking nowhere. diff --git a/.changeset/histogram-skip-column-refetch.md b/.changeset/histogram-skip-column-refetch.md deleted file mode 100644 index 351c1b66d7..0000000000 --- a/.changeset/histogram-skip-column-refetch.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@hyperdx/app': patch -'@hyperdx/common-utils': patch ---- - -fix: Don't refetch the search histogram when a table column is added or removed diff --git a/.changeset/image-apk-upgrade.md b/.changeset/image-apk-upgrade.md deleted file mode 100644 index e167f5b6c2..0000000000 --- a/.changeset/image-apk-upgrade.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@hyperdx/api': patch -'@hyperdx/app': patch ---- - -fix: run `apk upgrade` in the HyperDX image so it picks up Alpine security fixes -(OpenSSL, zlib) released after the Node and ClickHouse base images were built, -and bump Node from 22.23.4 to 22.23.5 in the image and `.nvmrc`. diff --git a/.changeset/ingestion-key-enforce-before-team.md b/.changeset/ingestion-key-enforce-before-team.md deleted file mode 100644 index 2204816c21..0000000000 --- a/.changeset/ingestion-key-enforce-before-team.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@hyperdx/api': patch ---- - -fix: require `INGESTION_API_KEY` on the app image before any team exists - -With `ENABLE_INGESTION_API_KEY` set and no team created yet, the collector's OTLP -receiver accepted data without authentication. It now requires the preset key. diff --git a/.changeset/login-rate-limit.md b/.changeset/login-rate-limit.md deleted file mode 100644 index 3c1091bf3a..0000000000 --- a/.changeset/login-rate-limit.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@hyperdx/api': patch -'@hyperdx/app': patch ---- - -fix: limit failed password logins to 10 per email every 2 minutes diff --git a/.changeset/mcp-cost-meter.md b/.changeset/mcp-cost-meter.md deleted file mode 100644 index eca2e31f21..0000000000 --- a/.changeset/mcp-cost-meter.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@hyperdx/common-utils': patch -'@hyperdx/api': patch ---- - -feat(mcp): `clickstack_event_patterns`, `clickstack_emerging_signals` and -`clickstack_describe_source` return `statistics` (`elapsed`, `rows_read`, -`bytes_read`, `queries`), summed over the ClickHouse queries of the call. A -query cost meter in the node ClickHouse client (`withQueryCost`) adds up the -statistics of each JSON result. diff --git a/.changeset/mcp-strict-tool-arguments.md b/.changeset/mcp-strict-tool-arguments.md deleted file mode 100644 index 42bf952a62..0000000000 --- a/.changeset/mcp-strict-tool-arguments.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@hyperdx/api': patch ---- - -fix(mcp): reject unknown tool arguments instead of silently ignoring them diff --git a/.changeset/metric-names-source-query-settings.md b/.changeset/metric-names-source-query-settings.md deleted file mode 100644 index c2a0c7b9f8..0000000000 --- a/.changeset/metric-names-source-query-settings.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@hyperdx/common-utils': patch -'@hyperdx/app': patch ---- - -fix: apply source query settings to metric explorer, metric name, attribute, and Kubernetes facet lookups diff --git a/.changeset/multi-day-axis-date-ticks.md b/.changeset/multi-day-axis-date-ticks.md deleted file mode 100644 index 753cee2a3b..0000000000 --- a/.changeset/multi-day-axis-date-ticks.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@hyperdx/app': patch ---- - -fix: show the date on every x-axis tick of time charts below daily granularity -when the range spans more than a day (e.g. last 7 days at 12 hour granularity). -Those ticks repeated only the time of day after the first one; they now show the -date and time. diff --git a/.changeset/onboarding-checklist-contrast.md b/.changeset/onboarding-checklist-contrast.md deleted file mode 100644 index d138285a0c..0000000000 --- a/.changeset/onboarding-checklist-contrast.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@hyperdx/app': patch ---- - -fix: raise the contrast of the onboarding checklist's step circles and stop -highlighting the first incomplete step, since users can start any step. diff --git a/.changeset/org-key-allowed-surfaces.md b/.changeset/org-key-allowed-surfaces.md deleted file mode 100644 index 4febba4a22..0000000000 --- a/.changeset/org-key-allowed-surfaces.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@hyperdx/api': patch -'@hyperdx/app': patch -'@hyperdx/common-utils': patch ---- - -feat: let organization API keys be restricted to the MCP server or the -External API. A key created without a restriction keeps working on both, as -does a personal access key. This closes the bypass where an MCP-only key could -call `/api/v2` and read connections hidden from agents. diff --git a/.changeset/parse-body-after-auth.md b/.changeset/parse-body-after-auth.md deleted file mode 100644 index 966481016e..0000000000 --- a/.changeset/parse-body-after-auth.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@hyperdx/api': patch ---- - -fix: read request bodies only after the caller is authenticated. An anonymous -request could make the API parse up to 32 MB before answering 401. Public -routes such as login and register now accept bodies up to 100 KB; signed-in -users and API keys keep the 32 MB limit. diff --git a/.changeset/patterns-max-body-chars.md b/.changeset/patterns-max-body-chars.md deleted file mode 100644 index 38cf774c56..0000000000 --- a/.changeset/patterns-max-body-chars.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@hyperdx/api': patch ---- - -feat(mcp): `maxBodyChars` on `clickstack_event_patterns` and -`clickstack_emerging_signals` mines only the start of each body, so long stack -traces and dumps are cut in the query and their patterns can be drilled into diff --git a/.changeset/percent-encoded-chart-urls.md b/.changeset/percent-encoded-chart-urls.md deleted file mode 100644 index 84ea6439ba..0000000000 --- a/.changeset/percent-encoded-chart-urls.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@hyperdx/app': patch ---- - -Percent-encode Chart Explorer and temporary dashboard URL state so shared links survive Slack, Teams, and terminals. diff --git a/.changeset/promql-catalog-tags-table.md b/.changeset/promql-catalog-tags-table.md deleted file mode 100644 index fc3787e156..0000000000 --- a/.changeset/promql-catalog-tags-table.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@hyperdx/api': patch ---- - -fix(mcp): `clickstack_describe_source` on a PromQL source over a ClickHouse TimeSeries table reads metric names from the tags table without a time window, so it no longer runs out of memory on large tables. Label names are listed per metric with the new `metricName` argument. diff --git a/.changeset/query-tiles-cost.md b/.changeset/query-tiles-cost.md deleted file mode 100644 index 7aec237d59..0000000000 --- a/.changeset/query-tiles-cost.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@hyperdx/api': patch ---- - -feat(mcp): `clickstack_query_tiles` reports each tile's wall time (`elapsedMs`), -and rows and bytes read for builder and SQL tiles; PromQL results from -`clickstack_promql` and `clickstack_query_tile` carry `elapsedMs` diff --git a/.changeset/remove-stale-dashboard-url-filters.md b/.changeset/remove-stale-dashboard-url-filters.md deleted file mode 100644 index 2130b7d1aa..0000000000 --- a/.changeset/remove-stale-dashboard-url-filters.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@hyperdx/app': patch ---- - -feat: add a "Remove ignored values from URL" button to the dashboard warning banner diff --git a/.changeset/saved-search-time-range.md b/.changeset/saved-search-time-range.md deleted file mode 100644 index da62f962f0..0000000000 --- a/.changeset/saved-search-time-range.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@hyperdx/api': minor -'@hyperdx/app': minor -'@hyperdx/common-utils': minor ---- - -feat: saved searches remember the selected time range (e.g. past 1 day or a live tail interval) and open with it instead of live tail diff --git a/.changeset/search-results-row-copy.md b/.changeset/search-results-row-copy.md deleted file mode 100644 index 2f9cd29011..0000000000 --- a/.changeset/search-results-row-copy.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@hyperdx/app': patch ---- - -fix: tighten the search results row. Group by now comes first, followed by the -result count and a shorter `2,895 rows scanned · 216ms` summary, with the -actions on the right. Copy is now sentence case. diff --git a/.changeset/slack-block-limit.md b/.changeset/slack-block-limit.md deleted file mode 100644 index 18de699cc1..0000000000 --- a/.changeset/slack-block-limit.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@hyperdx/api": patch ---- - -fix(api): prevent Slack notification failures when alert message exceeds 3000 chars diff --git a/.changeset/sql-filter-generated-sql.md b/.changeset/sql-filter-generated-sql.md deleted file mode 100644 index 0162d527c8..0000000000 --- a/.changeset/sql-filter-generated-sql.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@hyperdx/app': patch -'@hyperdx/common-utils': patch ---- - -feat: show the generated SQL, with variables and macros filled in, in the SQL query filter preview diff --git a/.changeset/table-sort-aliased-columns.md b/.changeset/table-sort-aliased-columns.md deleted file mode 100644 index a1fe86b935..0000000000 --- a/.changeset/table-sort-aliased-columns.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@hyperdx/app': patch -'@hyperdx/common-utils': patch ---- - -fix: Fix table sorting for formula, group by, and multi-series metric aliases diff --git a/.changeset/team-settings-sidebar.md b/.changeset/team-settings-sidebar.md deleted file mode 100644 index 14757dab35..0000000000 --- a/.changeset/team-settings-sidebar.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@hyperdx/app': patch ---- - -feat: team settings now has a sidebar with one page per setting and a search -box that also finds individual settings, such as "Parallelize queries when -possible", and jumps to them. API keys and organization API keys share one page. -Old `?tab=` links redirect to the new pages. diff --git a/.changeset/time-picker-dismiss.md b/.changeset/time-picker-dismiss.md deleted file mode 100644 index a4a04ac24e..0000000000 --- a/.changeset/time-picker-dismiss.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@hyperdx/app': patch ---- - -fix: close the time picker on a click outside it or on Escape. It stayed open, -including above the row side panel opened by clicking a search result. diff --git a/.changeset/timechart-drilldown-zero-value.md b/.changeset/timechart-drilldown-zero-value.md deleted file mode 100644 index 862b3da3ff..0000000000 --- a/.changeset/timechart-drilldown-zero-value.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@hyperdx/app': patch ---- - -fix: drill down correctly from a time chart point with a value of 0 - -Clicking a point with a value of 0 searched every event in that time bucket. It -now filters to events with a value of 0, as it already did for any other value. diff --git a/.changeset/timeseries-selector-26-11.md b/.changeset/timeseries-selector-26-11.md deleted file mode 100644 index 47dcf14a6f..0000000000 --- a/.changeset/timeseries-selector-26-11.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@hyperdx/api': patch -'@hyperdx/common-utils': patch ---- - -fix: PromQL label lookups with `match[]` work on ClickHouse 26.11, which -requires the `return_columns` argument of `timeSeriesSelector()` diff --git a/.changeset/webhook-default-user-agent.md b/.changeset/webhook-default-user-agent.md deleted file mode 100644 index 331b7c1ad0..0000000000 --- a/.changeset/webhook-default-user-agent.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@hyperdx/api': patch ---- - -fix: send a ClickStack User-Agent on generic alert webhooks - -Generic and incident.io alert webhooks sent `User-Agent: undici`, which some -receivers' firewalls block with a 403. They now send -`ClickStack-Alerts/`. A User-Agent set in the webhook's headers still -takes precedence. diff --git a/.changeset/zod-4-package-v3-api.md b/.changeset/zod-4-package-v3-api.md deleted file mode 100644 index 6a0390d861..0000000000 --- a/.changeset/zod-4-package-v3-api.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@hyperdx/api': patch -'@hyperdx/app': patch -'@hyperdx/common-utils': patch ---- - -chore: move to the zod 4 package (^4.6.6) while keeping the zod 3 API through -`zod/v3` imports. Schemas and validation behavior are unchanged. diff --git a/.env b/.env index c03b05aa62..9404bf0e60 100644 --- a/.env +++ b/.env @@ -9,8 +9,8 @@ NEXT_ALL_IN_ONE_IMAGE_NAME_DOCKERHUB=clickhouse/clickstack-all-in-one ALL_IN_ONE_IMAGE_NAME_DOCKERHUB=hyperdx/hyperdx-all-in-one NEXT_OTEL_COLLECTOR_IMAGE_NAME_DOCKERHUB=clickhouse/clickstack-otel-collector OTEL_COLLECTOR_IMAGE_NAME_DOCKERHUB=hyperdx/hyperdx-otel-collector -CODE_VERSION=2.47.0 -IMAGE_VERSION_SUB_TAG=.47.0 +CODE_VERSION=2.48.0 +IMAGE_VERSION_SUB_TAG=.48.0 IMAGE_VERSION=2 IMAGE_NIGHTLY_TAG=2-nightly IMAGE_LATEST_TAG=latest diff --git a/CHANGELOG.md b/CHANGELOG.md index a3bc9fe642..b8dd86bc1d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,272 @@ PR — keep the `hyperdx-release-notes` comment marker intact when editing so yo edits survive regeneration. Per-package detail lives in each `packages/*/CHANGELOG.md`. +## v2.48.0 — 2026-12-02 + + + +**Exemplar overlays and a team settings sidebar** + +Time charts on metric and PromQL sources can now overlay exemplars — individual +trace-linked data points you can hover for trace metadata and open the trace +from — behind the `NEXT_PUBLIC_ENABLE_EXEMPLARS` flag and a per-chart toggle. +Team settings has been rebuilt as a sidebar with one page per setting and a +search box that jumps straight to an individual setting, live mode now lets +you pick how often a dashboard refreshes, and alerts take an opt-in "Re-notify +every N minutes" setting so one that keeps firing no longer notifies on every +evaluation. The alert details page is now enabled in every deployment, so the +`NEXT_PUBLIC_ENABLE_ALERT_DETAILS` flag that gated it is gone. This release also +closes an authentication gap in the preset ingestion API key added in v2.47.0: if +you set `ENABLE_INGESTION_API_KEY` on a deployment where no team had been created +yet, the collector's OTLP receiver accepted telemetry without any authentication, +so upgrade if you run the app image with that variable set. Failed password +logins are now limited to 10 per email every two minutes, the API no longer +parses a request body before it knows who sent it, organisation API keys can be +restricted to the MCP server or the External API, alert webhooks identify +themselves as `ClickStack-Alerts`, so receivers that blocked the old default +User-Agent will start accepting them, and the image itself picks up the latest +Alpine security fixes and Node 22.23.5. + +### 💥 Breaking Changes + +- **`NEXT_PUBLIC_ENABLE_ALERT_DETAILS` has been removed**: the alert details page + (`/alerts/:id`) is now enabled in every deployment, so private, OSS and + LogHouse environments get the same page cloud already had, and the flag that + gated it no longer has any effect. Remove it from your deployment + configuration; if you were leaving it unset to keep the page hidden, it is now + reachable for everyone. + +### ✨ New Features + +- **A sidebar and a search box for team settings**: team settings now has a + sidebar with one page per setting, and a search box that finds individual + settings — "Parallelize queries when possible", for instance — and jumps to + them, so you no longer have to know which tab a setting lived under. API keys + and organisation API keys share one page, and old `?tab=` links redirect to + the new pages. +- **Alerts can re-notify on an interval instead of every evaluation**: an alert + takes a new opt-in "Re-notify every N minutes" setting + (`renotifyIntervalMinutes`), and while it keeps firing it notifies at most once + per interval — so a long-running incident no longer pages you on every check. + Leave it unset and the alert behaves exactly as it does today, and resolve + notifications are unchanged either way. +- **Saved searches remember their time range**: a saved search now keeps the + time range you selected — the past 1 day, say, or a live tail interval — and + opens with it instead of always starting in live tail, so a search you come + back to shows the window it was written for. +- **Organisation API keys can be restricted to one surface**: an organisation + API key can now be limited to the MCP server or to the External API, so a key + you hand to an agent can no longer call `/api/v2` and read connections that are + hidden from agents. A key created without a restriction keeps working on both, + as does a personal access key, so nothing changes for the keys you already + have. +- **Pattern mining can read just the start of each body**: the MCP tools + `clickstack_event_patterns` and `clickstack_emerging_signals` take a new + `maxBodyChars` argument that truncates each body in the query itself, so long + stack traces and dumps collapse into patterns you can drill into instead of + each one looking unique. +- **MCP query results report what they cost**: `clickstack_query_tiles` now + reports each tile's wall time as `elapsedMs`, plus the rows and bytes read for + builder and SQL tiles, and PromQL results from `clickstack_promql` and + `clickstack_query_tile` carry `elapsedMs` too — so an agent working through a + dashboard can tell which tile is the expensive one rather than guessing. + `clickstack_event_patterns`, `clickstack_emerging_signals` and + `clickstack_describe_source` report theirs as `statistics` — `elapsed`, + `rows_read`, `bytes_read` and `queries`, summed over every ClickHouse query a + single call made. +- **SQL query filters preview the SQL they generate**: the SQL query filter + preview now shows the generated SQL with variables and macros filled in, so + you can see exactly what will run against your source before you apply the + filter. +- **More global variables for dashboard links**: a row-click link template can + now use `{{__from}}`, `{{__to}}`, `{{__timezone}}`, `{{__url_time_range}}` and + `{{__all_variables}}`, along with a + `{{formatDate "iso"|"seconds"|"ms"}}` helper, so an external link + carries the time range you were reading. A dashboard link can also set a + destination filter by variable name (`kind: "variableTemplate"`), which lets a + static list filter be prefilled, and can carry the current dashboard's filters + over with `includeCurrentFilters`. Markdown tiles expand `$__from`, `$__to`, + `$__timezone`, `$__url_time_range` and `$__all_variables`, and a new + `${var:url}` format URL-encodes a variable's value. +- **Pick a dashboard's live mode refresh interval**: live mode no longer refreshes + on a fixed cadence — you can choose an interval from 30 seconds up to the + default for the dashboard's time range, so a wall-mounted dashboard can poll + as often as you actually need it to. +- **Reorder a dashboard's filters and variables**: the edit filters modal now + shows up/down controls on each filter, and the order you set there drives both + the modal list and the filter bar — so the filters you reach for most can sit + first instead of wherever they happened to be created. +- **Clear ignored filter values out of a dashboard's URL**: the dashboard warning + banner now carries a "Remove ignored values from URL" button, so when a link + you opened holds filter values the dashboard is ignoring you can strip them + from the URL in one click instead of editing it by hand. +- **Fit a search results column to its content**: double-click a column's resize + handle in the search results table to size it to what it holds, instead of + dragging the handle until it looks about right. A fitted column stops at 600px + or half the visible table width, and the last column goes back to filling the + table. + +### 🧪 Experimental + +- **Exemplar overlays on metric and PromQL time charts**: a time chart on a + metric or PromQL source can overlay exemplars — individual trace-linked data + points — with the "Show exemplars" toggle in the chart editor's display + settings. Hovering a marker shows the exemplar's own value and time plus trace + metadata from a trace source you nominate, with a button to open the trace. + Markers are sampled the way Grafana samples them: bucketed at the chart's + granularity, keeping the slowest trace in each bucket plus any further trace + more than 2σ below it, so the overlay shows the shape of the latency + distribution rather than tracing the top of the chart. A marker sits at the + trace's own measurement, so it is only drawn where that is honest — a single + non-ratio histogram series with no group by, aggregated in a way that leaves + the axis on the observation scale, or for PromQL an expression that plots a + duration — and markers outside the rendered window, or below a fitted y-axis + floor, are dropped rather than moved, with the count surfaced on the chart. + Off for the whole deployment unless you set `NEXT_PUBLIC_ENABLE_EXEMPLARS`, + and off per chart until you turn the toggle on; how many markers a chart draws + is the team setting Max Exemplars per Chart. +- **Exemplar settings on API- and agent-authored tiles**: `enableExemplars` and + `exemplarTraceSourceId` are now accepted on line and stacked-bar tiles through + the external v2 API and the MCP dashboard tools, survive the tile conversion in + both directions, and are documented in the OpenAPI spec — previously they + validated on write and were dropped before persistence, so they could not be + set through any surface. `exemplarTraceSourceId` has to be an ObjectId naming a + source that exists for your team and is actually a Trace source, so a tile can + no longer save cleanly with every marker's "view trace" link pointing nowhere. + +### 🔧 Improvements + +- **Filters on Map keys use the key=value index**: an ad hoc or dashboard filter + on a Map key renders as `toString(Map['k']) = 'v'`, a shape the + `has(, ...)` rewrite skipped, so the query decoded the whole Map for + every row it read. Those filters now go through the Map's KV items index like + the rest. +- **Claude Sonnet 5.5 is the default for the Anthropic assistant**: the + assistant now uses Claude Sonnet 5.5 by default, and its rates are included in + the LLM cost estimates, so those estimates stay accurate on the new default. +- **"Copy debug info" reports each connection's ClickHouse version**: the debug + info report now includes the ClickHouse server version behind every + connection, so a bug report carries the version your queries actually ran + against without anyone having to go and ask for it. +- **ClickHouse proxy spans record the server version**: a query that goes through + the ClickHouse proxy now carries the server's version on its span, as + `hyperdx.clickhouse_proxy.clickhouse.version`, so when you monitor your own + deployment you can compare query errors and latency either side of a ClickHouse + upgrade. +- **A tighter search results row**: the row above the search results now leads + with the group by, followed by the result count and a shorter + `2,895 rows scanned · 216ms` summary, with the actions on the right, and its + copy is in sentence case. +- **The onboarding checklist reads more clearly**: the checklist's step circles + are drawn with more contrast, and the first incomplete step is no longer + singled out, since you can start whichever step you like rather than working + through them in order. + +### 🐛 Bug Fixes + +- **The preset ingestion key is enforced before a team exists**: with + `ENABLE_INGESTION_API_KEY` set and no team created yet, the app image's OTLP + receiver accepted data without authentication, so anyone who could reach the + endpoint on a fresh deployment could write to it. The receiver now requires the + `INGESTION_API_KEY` you set, so a collector pointed at a brand-new deployment + has to present that key. +- **Failed password logins are rate-limited**: an email address can now make at + most 10 failed password login attempts every two minutes, so a password is no + longer open to being guessed at full speed. +- **Request bodies are read only after the caller is authenticated**: an + anonymous request could make the API parse up to 32 MB of body before it + answered 401. The body is now read once the caller is known, and public routes + such as login and register accept bodies up to 100 KB, while signed-in users + and API keys keep the 32 MB limit. +- **Alert webhooks send a ClickStack User-Agent**: generic and incident.io alert + webhooks went out as `User-Agent: undici`, which some receivers' firewalls + reject with a 403. They now send `ClickStack-Alerts/`, and a + User-Agent you set in the webhook's own headers still takes precedence. +- **Long alert messages no longer break Slack notifications**: an alert whose + message ran past Slack's 3,000-character limit for a block failed to send at + all, so the notification you were relying on never arrived. Those alerts now + notify Slack successfully. +- **Table charts sort on formula, group-by and multi-series aliases**: clicking + one of those columns in a table chart did not sort by it, because the aliased + column was not matched to the underlying series. Sorting now follows the column + you clicked. +- **Source query settings apply to metric and facet lookups**: the metric + explorer, and the metric name, attribute and Kubernetes facet lookups behind + it, ran without the query settings configured on the source. They now use + them, so those lists behave like the rest of your queries against that source. +- **Time charts label every x-axis tick with its date**: a time chart bucketed by + a day or longer repeated the time — `00:00:00` — on every tick after the first, + leaving you to count buckets to work out which day you were looking at. Each + tick now shows its date, and a daily bucket that doesn't start at midnight in + the display time zone shows the date and the time. Finer buckets over a range + spanning more than a day — the last 7 days at 12 hour granularity, say — + repeated only the time of day after the first tick as well, and now show the + date and the time too. +- **Drilling down from a zero-value chart point filters to zero**: clicking a + time chart point whose value was 0 searched every event in that time bucket + rather than the ones it was drawn from. It now filters to events with a value + of 0, as it already did for every other value. +- **Adding or removing a table column no longer reloads the search histogram**: + changing the columns shown in the search results table refetched the histogram + above them, so you waited on a query whose result could not have changed. The + histogram now stays as it is. +- **The time picker closes when you click away from it**: the time picker stayed + open once opened, including on top of the row side panel you get from clicking + a search result. It now closes on a click outside it or on Escape. +- **Shared Chart Explorer and temporary dashboard links survive being pasted**: + the URL state for Chart Explorer and temporary dashboards is now + percent-encoded, so a link you send through Slack or Teams, or paste into a + terminal, arrives whole instead of being cut short at the first character the + receiving app won't carry. +- **The "discard unsaved changes" confirm opens above the edit alert modal**: the + confirm used to open behind the modal, which left the modal impossible to + close. It now sits on top, so you can answer it and get out of the editor. +- **The collapsed side nav's links and Help button have accessible names**: with + the nav collapsed to icons, the page links and the logo link had no text, so + screen readers announced each of them only as "link", and the Help button was + announced only as "button" — or as "New updates available" when a release was + unseen. The labels now stay in the page, visually hidden. +- **PromQL label lookups work on ClickHouse 26.11**: a label lookup with + `match[]` failed on ClickHouse 26.11, which requires the `return_columns` + argument of `timeSeriesSelector()`. Those lookups now pass it, so they resolve + on 26.11 as they do on earlier versions. +- **Describing a PromQL source no longer runs out of memory**: the MCP tool + `clickstack_describe_source`, pointed at a PromQL source over a ClickHouse + TimeSeries table, could exhaust memory on a large table. It now reads metric + names from the tags table with no time window, and lists label names for a + single metric when you pass the new `metricName` argument. +- **Emerging signals no longer reports one pattern as both new and gone**: the + MCP tool `clickstack_emerging_signals` mines both windows in a single Drain + tree, in a fixed order with the baseline first, and compares them by cluster, + so a token that is constant in one window and varies in the other no longer + splits a pattern into one "new" entry and one that has gone. A new message that + Drain merges into a baseline pattern is reported as `new_variant` rather than + hidden by the merge, a baseline message that stops while the rest of its + pattern carries on is reported as `gone_variant`, and the baseline window + excludes its end, so a row on the boundary is counted once. +- **MCP tool calls reject unknown arguments**: an argument a tool doesn't define + was silently ignored, so a misspelt argument name left the tool running on its + defaults and quietly answering a different question. Such a call is now + rejected, so the mistake surfaces and can be corrected. + +### 📦 Build / Packaging + +- **Alpine security fixes in the HyperDX image**: the image now runs + `apk upgrade` as it is built, so it carries the Alpine security fixes — OpenSSL + and zlib among them — released after the Node and ClickHouse base images were + built. Node also moves from 22.23.4 to 22.23.5 in the image and in `.nvmrc`. + + + +### 📦 Package changelogs + +- `@hyperdx/api` 2.47.0 → 2.48.0 — [changelog](https://github.com/ClickHouse/ClickStack/blob/main/packages/api/CHANGELOG.md#2480) +- `@hyperdx/app` 2.47.0 → 2.48.0 — [changelog](https://github.com/ClickHouse/ClickStack/blob/main/packages/app/CHANGELOG.md#2480) +- `@hyperdx/common-utils` 0.36.1 → 0.37.0 — [changelog](https://github.com/ClickHouse/ClickStack/blob/main/packages/common-utils/CHANGELOG.md#0370) +- `@hyperdx/otel-collector` 2.47.0 → 2.48.0 — [changelog](https://github.com/ClickHouse/ClickStack/blob/main/packages/otel-collector/CHANGELOG.md#2480) + + + ## v2.47.0 — 2026-11-23 diff --git a/packages/api/CHANGELOG.md b/packages/api/CHANGELOG.md index 03ac7d76be..9f06b3dc2b 100644 --- a/packages/api/CHANGELOG.md +++ b/packages/api/CHANGELOG.md @@ -1,5 +1,135 @@ # @hyperdx/api +## 2.48.0 + +### Minor Changes + +- 4d26b57a6: feat: alerts get an opt-in "Re-notify every N minutes" setting (`renotifyIntervalMinutes`). While an alert keeps firing it notifies at most once per interval; unset keeps today's behaviour of notifying on every evaluation. Resolve notifications are unchanged. +- 2e233f768: feat: accept exemplar settings on API- and agent-authored dashboard tiles + + `enableExemplars` and `exemplarTraceSourceId` are now accepted on line and + stacked-bar tiles through the external v2 API and the MCP dashboard tools, + survive the tile conversion in both directions, and are documented in the + OpenAPI spec. Previously they validated on write and were dropped before + persistence, so they could not be set through any surface. + + `exemplarTraceSourceId` is checked three ways, because a marker's "view trace" + link is only as good as the source behind it: an ObjectId on both surfaces, the + source must exist for the team, and it must actually be a Trace source. The + existence and kind checks mirror the heatmap gate. Without them a well-formed id + for a metric source saved cleanly and left every marker linking nowhere. + +- 2c0e20fe5: feat: saved searches remember the selected time range (e.g. past 1 day or a live tail interval) and open with it instead of live tail + +### Patch Changes + +- 6569e326d: Use Claude Sonnet 5.5 by default for the Anthropic assistant and include its rates in LLM cost estimates. +- f874e3414: feat: record the ClickHouse server version on ClickHouse proxy spans, as + `hyperdx.clickhouse_proxy.clickhouse.version`, so query errors and latency can + be compared across ClickHouse upgrades. +- dceb21d14: feat: more global vars for dashboard links + + - Row-click link templates can use `{{__from}}`, `{{__to}}`, `{{__timezone}}`, + `{{__url_time_range}}`, `{{__all_variables}}`, and a + `{{formatDate "iso"|"seconds"|"ms"}}` helper. External links now carry + the time range this way. + - Dashboard links can set a destination filter by variable name + (`kind: "variableTemplate"`), so static list filters can be prefilled. + - Dashboard links can carry the current dashboard's filters over + (`includeCurrentFilters`). + - Markdown tiles expand `$__from`, `$__to`, `$__timezone`, + `$__url_time_range` and `$__all_variables`, and a new `${var:url}` format + URL-encodes variable values. + +- a1a5eacde: fix: MCP `emerging_signals` mines both windows in one Drain tree, in a fixed + order (baseline first), and compares them by cluster, so a token that is + constant in one window and varies in the other no longer splits a pattern into + one "new" and one "gone". New messages that Drain merges into a baseline pattern + are reported as `new_variant`, so they aren't hidden by the merge, and baseline + messages that stop while the rest of their pattern goes on are reported as + `gone_variant`. The baseline window excludes its end, so a row at the boundary + is counted once. +- 4188b80fe: feat: exemplar overlay for metric and PromQL time charts + + Time charts on metric and PromQL sources can overlay exemplars — individual + trace-linked data points — via the "Show exemplars" toggle in the chart + editor's display settings. Hovering a marker shows the exemplar's own value and time plus trace metadata + from a configurable trace source, with a button to open the trace. + + Off by default for the whole deployment behind `NEXT_PUBLIC_ENABLE_EXEMPLARS`, + and per-chart behind the toggle. How many markers a chart draws is a team + setting, Max Exemplars per Chart. + + Markers are sampled the way Grafana samples them: bucketed at the chart's + granularity, keeping the slowest trace in each bucket plus any further trace more + than 2σ below it. The overlay shows the shape of the latency distribution rather + than tracing the top of the chart. + + A marker sits at the trace's own measurement, so it is only shown where that is + honest: a single non-ratio histogram series with no group by, aggregated in a way + that leaves the axis on the observation scale, and for PromQL an expression that + plots a duration. Markers outside the rendered window, or below a fitted y-axis + floor, are dropped rather than moved — and the count is surfaced on the chart. + +- 5bd07d54b: fix: run `apk upgrade` in the HyperDX image so it picks up Alpine security fixes + (OpenSSL, zlib) released after the Node and ClickHouse base images were built, + and bump Node from 22.23.4 to 22.23.5 in the image and `.nvmrc`. +- c499769a3: fix: require `INGESTION_API_KEY` on the app image before any team exists + + With `ENABLE_INGESTION_API_KEY` set and no team created yet, the collector's OTLP + receiver accepted data without authentication. It now requires the preset key. + +- e4fe80a6d: fix: limit failed password logins to 10 per email every 2 minutes +- 210ba59a7: feat(mcp): `clickstack_event_patterns`, `clickstack_emerging_signals` and + `clickstack_describe_source` return `statistics` (`elapsed`, `rows_read`, + `bytes_read`, `queries`), summed over the ClickHouse queries of the call. A + query cost meter in the node ClickHouse client (`withQueryCost`) adds up the + statistics of each JSON result. +- ed8520119: fix(mcp): reject unknown tool arguments instead of silently ignoring them +- 73ec0d573: feat: let organization API keys be restricted to the MCP server or the + External API. A key created without a restriction keeps working on both, as + does a personal access key. This closes the bypass where an MCP-only key could + call `/api/v2` and read connections hidden from agents. +- 48fcaf5ba: fix: read request bodies only after the caller is authenticated. An anonymous + request could make the API parse up to 32 MB before answering 401. Public + routes such as login and register now accept bodies up to 100 KB; signed-in + users and API keys keep the 32 MB limit. +- 6a7164c9c: feat(mcp): `maxBodyChars` on `clickstack_event_patterns` and + `clickstack_emerging_signals` mines only the start of each body, so long stack + traces and dumps are cut in the query and their patterns can be drilled into +- 3be2ea1ba: fix(mcp): `clickstack_describe_source` on a PromQL source over a ClickHouse TimeSeries table reads metric names from the tags table without a time window, so it no longer runs out of memory on large tables. Label names are listed per metric with the new `metricName` argument. +- 58a59e366: feat(mcp): `clickstack_query_tiles` reports each tile's wall time (`elapsedMs`), + and rows and bytes read for builder and SQL tiles; PromQL results from + `clickstack_promql` and `clickstack_query_tile` carry `elapsedMs` +- 1d17024cf: fix(api): prevent Slack notification failures when alert message exceeds 3000 chars +- 099aa089e: fix: PromQL label lookups with `match[]` work on ClickHouse 26.11, which + requires the `return_columns` argument of `timeSeriesSelector()` +- 272a46101: fix: send a ClickStack User-Agent on generic alert webhooks + + Generic and incident.io alert webhooks sent `User-Agent: undici`, which some + receivers' firewalls block with a 403. They now send + `ClickStack-Alerts/`. A User-Agent set in the webhook's headers still + takes precedence. + +- 210f3e2c4: chore: move to the zod 4 package (^4.6.6) while keeping the zod 3 API through + `zod/v3` imports. Schemas and validation behavior are unchanged. +- Updated dependencies [d6280844a] +- Updated dependencies [4d26b57a6] +- Updated dependencies [b362d339a] +- Updated dependencies [dceb21d14] +- Updated dependencies [a1a5eacde] +- Updated dependencies [4188b80fe] +- Updated dependencies [f36e6788f] +- Updated dependencies [210ba59a7] +- Updated dependencies [b51ddb9d5] +- Updated dependencies [73ec0d573] +- Updated dependencies [2c0e20fe5] +- Updated dependencies [3bdbf7f20] +- Updated dependencies [c3928c77d] +- Updated dependencies [099aa089e] +- Updated dependencies [210f3e2c4] + - @hyperdx/common-utils@0.37.0 + ## 2.47.0 ### Minor Changes diff --git a/packages/api/package.json b/packages/api/package.json index 2d9e584d13..c0ed3722ac 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -1,6 +1,6 @@ { "name": "@hyperdx/api", - "version": "2.47.0", + "version": "2.48.0", "license": "MIT", "private": true, "engines": { @@ -23,7 +23,7 @@ "@clickhouse/clickstack-node": "^1.0.2", "@clickhouse/client-common": "1.23.0-head.fae5998.1", "@esm2cjs/p-queue": "^7.3.0", - "@hyperdx/common-utils": "^0.36.1", + "@hyperdx/common-utils": "^0.37.0", "@hyperdx/passport-local-mongoose": "^9.0.1", "@modelcontextprotocol/sdk": "^1.32.0", "@opentelemetry/api": "~1.9.1", diff --git a/packages/app/CHANGELOG.md b/packages/app/CHANGELOG.md index 47d0a2ea81..b2a2969217 100644 --- a/packages/app/CHANGELOG.md +++ b/packages/app/CHANGELOG.md @@ -1,5 +1,147 @@ # @hyperdx/app +## 2.48.0 + +### Minor Changes + +- 4d26b57a6: feat: alerts get an opt-in "Re-notify every N minutes" setting (`renotifyIntervalMinutes`). While an alert keeps firing it notifies at most once per interval; unset keeps today's behaviour of notifying on every evaluation. Resolve notifications are unchanged. +- 0eafee27e: feat: enable the alert details page (`/alerts/:id`) in all deployments. Removes + the `NEXT_PUBLIC_ENABLE_ALERT_DETAILS` flag that previously gated it, so private, + OSS, and LogHouse environments now get the same alert details page already + enabled in cloud. +- 4188b80fe: feat: exemplar overlay for metric and PromQL time charts + + Time charts on metric and PromQL sources can overlay exemplars — individual + trace-linked data points — via the "Show exemplars" toggle in the chart + editor's display settings. Hovering a marker shows the exemplar's own value and time plus trace metadata + from a configurable trace source, with a button to open the trace. + + Off by default for the whole deployment behind `NEXT_PUBLIC_ENABLE_EXEMPLARS`, + and per-chart behind the toggle. How many markers a chart draws is a team + setting, Max Exemplars per Chart. + + Markers are sampled the way Grafana samples them: bucketed at the chart's + granularity, keeping the slowest trace in each bucket plus any further trace more + than 2σ below it. The overlay shows the shape of the latency distribution rather + than tracing the top of the chart. + + A marker sits at the trace's own measurement, so it is only shown where that is + honest: a single non-ratio histogram series with no group by, aggregated in a way + that leaves the axis on the observation scale, and for PromQL an expression that + plots a duration. Markers outside the rendered window, or below a fitted y-axis + floor, are dropped rather than moved — and the count is surfaced on the chart. + +- 2c0e20fe5: feat: saved searches remember the selected time range (e.g. past 1 day or a live tail interval) and open with it instead of live tail + +### Patch Changes + +- d6280844a: fix: use the Map KV items index for ad hoc and dashboard filters on Map keys. + These filters render `toString(Map['k']) = 'v'`, which the `has(, ...)` + rewrite previously skipped, so the query decoded the whole Map for every row. +- 6569e326d: Use Claude Sonnet 5.5 by default for the Anthropic assistant and include its rates in LLM cost estimates. +- b0a980331: fix: give the collapsed side nav's Help button an accessible name. With the nav + collapsed to icons, screen readers announced it only as "button" (or as "New + updates available" when a release was unseen). The Help label now stays in + the page, visually hidden. +- 4fce2f616: fix: give the collapsed side nav's links an accessible name. With the nav + collapsed to icons, the page links and the logo link had no text, so screen + readers announced them only as "link". The labels now stay in the page, + visually hidden. +- 96dedb14f: feat: double-click a column's resize handle in search results to fit the column + to its content. A fitted column stops at 600px or half the visible table width, + and the last column goes back to filling the table. +- c64f40386: fix: the "discard unsaved changes" confirm no longer opens behind the edit alert modal, which left the modal impossible to close +- b362d339a: fix: show the date on every x-axis tick of time charts at daily granularity or + coarser, instead of repeating the time (e.g. `00:00:00`) after the first tick. + When a daily bucket doesn't start at midnight in the display time zone, the tick + shows the date and time. +- db34d7981: feat: let users reorder dashboard filters and variables. The edit filters modal + now shows up/down controls on each filter, and that order drives both the modal + list and the filter bar. +- dceb21d14: feat: more global vars for dashboard links + + - Row-click link templates can use `{{__from}}`, `{{__to}}`, `{{__timezone}}`, + `{{__url_time_range}}`, `{{__all_variables}}`, and a + `{{formatDate "iso"|"seconds"|"ms"}}` helper. External links now carry + the time range this way. + - Dashboard links can set a destination filter by variable name + (`kind: "variableTemplate"`), so static list filters can be prefilled. + - Dashboard links can carry the current dashboard's filters over + (`includeCurrentFilters`). + - Markdown tiles expand `$__from`, `$__to`, `$__timezone`, + `$__url_time_range` and `$__all_variables`, and a new `${var:url}` format + URL-encodes variable values. + +- 5581b950f: feat: Pick the dashboard live mode refresh interval, from 30s up to the time + range's default +- dd3e6de37: feat: include each connection's ClickHouse server version in the "Copy debug info" report +- f36e6788f: fix: Don't refetch the search histogram when a table column is added or removed +- 5bd07d54b: fix: run `apk upgrade` in the HyperDX image so it picks up Alpine security fixes + (OpenSSL, zlib) released after the Node and ClickHouse base images were built, + and bump Node from 22.23.4 to 22.23.5 in the image and `.nvmrc`. +- e4fe80a6d: fix: limit failed password logins to 10 per email every 2 minutes +- b51ddb9d5: fix: apply source query settings to metric explorer, metric name, attribute, and Kubernetes facet lookups +- 92aa9c362: fix: show the date on every x-axis tick of time charts below daily granularity + when the range spans more than a day (e.g. last 7 days at 12 hour granularity). + Those ticks repeated only the time of day after the first one; they now show the + date and time. +- 3bdf617a3: fix: raise the contrast of the onboarding checklist's step circles and stop + highlighting the first incomplete step, since users can start any step. +- 73ec0d573: feat: let organization API keys be restricted to the MCP server or the + External API. A key created without a restriction keeps working on both, as + does a personal access key. This closes the bypass where an MCP-only key could + call `/api/v2` and read connections hidden from agents. +- 247b3db9d: Percent-encode Chart Explorer and temporary dashboard URL state so shared links survive Slack, Teams, and terminals. +- 2a5652c50: feat: add a "Remove ignored values from URL" button to the dashboard warning banner +- 29d2af048: fix: tighten the search results row. Group by now comes first, followed by the + result count and a shorter `2,895 rows scanned · 216ms` summary, with the + actions on the right. Copy is now sentence case. +- 3bdbf7f20: feat: show the generated SQL, with variables and macros filled in, in the SQL query filter preview +- c3928c77d: fix: Fix table sorting for formula, group by, and multi-series metric aliases +- c04a7786f: feat: team settings now has a sidebar with one page per setting and a search + box that also finds individual settings, such as "Parallelize queries when + possible", and jumps to them. API keys and organization API keys share one page. + Old `?tab=` links redirect to the new pages. +- 5e6978f62: fix: close the time picker on a click outside it or on Escape. It stayed open, + including above the row side panel opened by clicking a search result. +- 5f8d22df0: fix: drill down correctly from a time chart point with a value of 0 + + Clicking a point with a value of 0 searched every event in that time bucket. It + now filters to events with a value of 0, as it already did for any other value. + +- 210f3e2c4: chore: move to the zod 4 package (^4.6.6) while keeping the zod 3 API through + `zod/v3` imports. Schemas and validation behavior are unchanged. +- Updated dependencies [d6280844a] +- Updated dependencies [4d26b57a6] +- Updated dependencies [6569e326d] +- Updated dependencies [f874e3414] +- Updated dependencies [b362d339a] +- Updated dependencies [dceb21d14] +- Updated dependencies [a1a5eacde] +- Updated dependencies [4188b80fe] +- Updated dependencies [2e233f768] +- Updated dependencies [f36e6788f] +- Updated dependencies [5bd07d54b] +- Updated dependencies [c499769a3] +- Updated dependencies [e4fe80a6d] +- Updated dependencies [210ba59a7] +- Updated dependencies [ed8520119] +- Updated dependencies [b51ddb9d5] +- Updated dependencies [73ec0d573] +- Updated dependencies [48fcaf5ba] +- Updated dependencies [6a7164c9c] +- Updated dependencies [3be2ea1ba] +- Updated dependencies [58a59e366] +- Updated dependencies [2c0e20fe5] +- Updated dependencies [1d17024cf] +- Updated dependencies [3bdbf7f20] +- Updated dependencies [c3928c77d] +- Updated dependencies [099aa089e] +- Updated dependencies [272a46101] +- Updated dependencies [210f3e2c4] + - @hyperdx/common-utils@0.37.0 + - @hyperdx/api@2.48.0 + ## 2.47.0 ### Minor Changes diff --git a/packages/app/package.json b/packages/app/package.json index 15460e64c7..0e4ce356ac 100644 --- a/packages/app/package.json +++ b/packages/app/package.json @@ -1,6 +1,6 @@ { "name": "@hyperdx/app", - "version": "2.47.0", + "version": "2.48.0", "private": true, "license": "MIT", "engines": { @@ -40,7 +40,7 @@ "@dnd-kit/utilities": "^3.2.2", "@hookform/resolvers": "patch:@hookform/resolvers@npm%3A3.9.0#~/.yarn/patches/@hookform-resolvers-npm-3.9.0-6238a72f77.patch", "@hyperdx/api": "workspace:*", - "@hyperdx/common-utils": "^0.36.1", + "@hyperdx/common-utils": "^0.37.0", "@mantine/core": "^9.0.0", "@mantine/dates": "^9.0.0", "@mantine/dropzone": "^9.0.0", diff --git a/packages/cli/package.json b/packages/cli/package.json index 862f7de027..2503e90d8c 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -41,7 +41,7 @@ }, "devDependencies": { "@clickhouse/client": "1.23.0-head.fae5998.1", - "@hyperdx/common-utils": "^0.36.1", + "@hyperdx/common-utils": "^0.37.0", "@jest/globals": "^30.2.0", "@types/crypto-js": "^4.2.2", "@types/jest": "^29.5.14", diff --git a/packages/common-utils/CHANGELOG.md b/packages/common-utils/CHANGELOG.md index 8829505b6b..800eaf8c99 100644 --- a/packages/common-utils/CHANGELOG.md +++ b/packages/common-utils/CHANGELOG.md @@ -1,5 +1,83 @@ # @hyperdx/common-utils +## 0.37.0 + +### Minor Changes + +- 4d26b57a6: feat: alerts get an opt-in "Re-notify every N minutes" setting (`renotifyIntervalMinutes`). While an alert keeps firing it notifies at most once per interval; unset keeps today's behaviour of notifying on every evaluation. Resolve notifications are unchanged. +- 4188b80fe: feat: exemplar overlay for metric and PromQL time charts + + Time charts on metric and PromQL sources can overlay exemplars — individual + trace-linked data points — via the "Show exemplars" toggle in the chart + editor's display settings. Hovering a marker shows the exemplar's own value and time plus trace metadata + from a configurable trace source, with a button to open the trace. + + Off by default for the whole deployment behind `NEXT_PUBLIC_ENABLE_EXEMPLARS`, + and per-chart behind the toggle. How many markers a chart draws is a team + setting, Max Exemplars per Chart. + + Markers are sampled the way Grafana samples them: bucketed at the chart's + granularity, keeping the slowest trace in each bucket plus any further trace more + than 2σ below it. The overlay shows the shape of the latency distribution rather + than tracing the top of the chart. + + A marker sits at the trace's own measurement, so it is only shown where that is + honest: a single non-ratio histogram series with no group by, aggregated in a way + that leaves the axis on the observation scale, and for PromQL an expression that + plots a duration. Markers outside the rendered window, or below a fitted y-axis + floor, are dropped rather than moved — and the count is surfaced on the chart. + +- 2c0e20fe5: feat: saved searches remember the selected time range (e.g. past 1 day or a live tail interval) and open with it instead of live tail + +### Patch Changes + +- d6280844a: fix: use the Map KV items index for ad hoc and dashboard filters on Map keys. + These filters render `toString(Map['k']) = 'v'`, which the `has(, ...)` + rewrite previously skipped, so the query decoded the whole Map for every row. +- b362d339a: fix: show the date on every x-axis tick of time charts at daily granularity or + coarser, instead of repeating the time (e.g. `00:00:00`) after the first tick. + When a daily bucket doesn't start at midnight in the display time zone, the tick + shows the date and time. +- dceb21d14: feat: more global vars for dashboard links + + - Row-click link templates can use `{{__from}}`, `{{__to}}`, `{{__timezone}}`, + `{{__url_time_range}}`, `{{__all_variables}}`, and a + `{{formatDate "iso"|"seconds"|"ms"}}` helper. External links now carry + the time range this way. + - Dashboard links can set a destination filter by variable name + (`kind: "variableTemplate"`), so static list filters can be prefilled. + - Dashboard links can carry the current dashboard's filters over + (`includeCurrentFilters`). + - Markdown tiles expand `$__from`, `$__to`, `$__timezone`, + `$__url_time_range` and `$__all_variables`, and a new `${var:url}` format + URL-encodes variable values. + +- a1a5eacde: fix: MCP `emerging_signals` mines both windows in one Drain tree, in a fixed + order (baseline first), and compares them by cluster, so a token that is + constant in one window and varies in the other no longer splits a pattern into + one "new" and one "gone". New messages that Drain merges into a baseline pattern + are reported as `new_variant`, so they aren't hidden by the merge, and baseline + messages that stop while the rest of their pattern goes on are reported as + `gone_variant`. The baseline window excludes its end, so a row at the boundary + is counted once. +- f36e6788f: fix: Don't refetch the search histogram when a table column is added or removed +- 210ba59a7: feat(mcp): `clickstack_event_patterns`, `clickstack_emerging_signals` and + `clickstack_describe_source` return `statistics` (`elapsed`, `rows_read`, + `bytes_read`, `queries`), summed over the ClickHouse queries of the call. A + query cost meter in the node ClickHouse client (`withQueryCost`) adds up the + statistics of each JSON result. +- b51ddb9d5: fix: apply source query settings to metric explorer, metric name, attribute, and Kubernetes facet lookups +- 73ec0d573: feat: let organization API keys be restricted to the MCP server or the + External API. A key created without a restriction keeps working on both, as + does a personal access key. This closes the bypass where an MCP-only key could + call `/api/v2` and read connections hidden from agents. +- 3bdbf7f20: feat: show the generated SQL, with variables and macros filled in, in the SQL query filter preview +- c3928c77d: fix: Fix table sorting for formula, group by, and multi-series metric aliases +- 099aa089e: fix: PromQL label lookups with `match[]` work on ClickHouse 26.11, which + requires the `return_columns` argument of `timeSeriesSelector()` +- 210f3e2c4: chore: move to the zod 4 package (^4.6.6) while keeping the zod 3 API through + `zod/v3` imports. Schemas and validation behavior are unchanged. + ## 0.36.1 ### Patch Changes diff --git a/packages/common-utils/package.json b/packages/common-utils/package.json index 42cfe8e8a3..139a6933da 100644 --- a/packages/common-utils/package.json +++ b/packages/common-utils/package.json @@ -1,7 +1,7 @@ { "name": "@hyperdx/common-utils", "description": "Common utilities for HyperDX application", - "version": "0.36.1", + "version": "0.37.0", "license": "MIT", "private": true, "files": [ diff --git a/packages/otel-collector/CHANGELOG.md b/packages/otel-collector/CHANGELOG.md index 95bbf5096d..a93dbd8e6c 100644 --- a/packages/otel-collector/CHANGELOG.md +++ b/packages/otel-collector/CHANGELOG.md @@ -1,5 +1,7 @@ # @hyperdx/otel-collector +## 2.48.0 + ## 2.47.0 ### Patch Changes diff --git a/packages/otel-collector/package.json b/packages/otel-collector/package.json index 8803d84487..31005d2f25 100644 --- a/packages/otel-collector/package.json +++ b/packages/otel-collector/package.json @@ -1,7 +1,7 @@ { "name": "@hyperdx/otel-collector", "description": "HyperDX OpenTelemetry Collector configuration and Docker image", - "version": "2.47.0", + "version": "2.48.0", "license": "MIT", "private": true } diff --git a/yarn.lock b/yarn.lock index 33364b20a6..2ddff17c43 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4103,7 +4103,7 @@ __metadata: "@clickhouse/clickstack-node": "npm:^1.0.2" "@clickhouse/client-common": "npm:1.23.0-head.fae5998.1" "@esm2cjs/p-queue": "npm:^7.3.0" - "@hyperdx/common-utils": "npm:^0.36.1" + "@hyperdx/common-utils": "npm:^0.37.0" "@hyperdx/passport-local-mongoose": "npm:^9.0.1" "@modelcontextprotocol/sdk": "npm:^1.32.0" "@opentelemetry/api": "npm:~1.9.1" @@ -4199,7 +4199,7 @@ __metadata: "@dnd-kit/utilities": "npm:^3.2.2" "@hookform/resolvers": "patch:@hookform/resolvers@npm%3A3.9.0#~/.yarn/patches/@hookform-resolvers-npm-3.9.0-6238a72f77.patch" "@hyperdx/api": "workspace:*" - "@hyperdx/common-utils": "npm:^0.36.1" + "@hyperdx/common-utils": "npm:^0.37.0" "@mantine/core": "npm:^9.0.0" "@mantine/dates": "npm:^9.0.0" "@mantine/dropzone": "npm:^9.0.0" @@ -4319,7 +4319,7 @@ __metadata: resolution: "@hyperdx/cli@workspace:packages/cli" dependencies: "@clickhouse/client": "npm:1.23.0-head.fae5998.1" - "@hyperdx/common-utils": "npm:^0.36.1" + "@hyperdx/common-utils": "npm:^0.37.0" "@jest/globals": "npm:^30.2.0" "@types/crypto-js": "npm:^4.2.2" "@types/jest": "npm:^29.5.14" @@ -4346,7 +4346,7 @@ __metadata: languageName: unknown linkType: soft -"@hyperdx/common-utils@npm:^0.36.1, @hyperdx/common-utils@workspace:packages/common-utils": +"@hyperdx/common-utils@npm:^0.37.0, @hyperdx/common-utils@workspace:packages/common-utils": version: 0.0.0-use.local resolution: "@hyperdx/common-utils@workspace:packages/common-utils" dependencies: