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/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-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/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-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/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-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/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/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/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..815e662e1f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,192 @@ 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-11-27 + + + +**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, and live mode now lets +you pick how often a dashboard refreshes. 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, 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. + +### ✨ 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. +- **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. +- **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. +- **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. + +### 🧪 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. + +### 🐛 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. +- **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. +- **Daily and coarser time charts label every 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. +- **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. +- **The collapsed side nav's links 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". 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..f3cc2d0ec1 100644 --- a/packages/api/CHANGELOG.md +++ b/packages/api/CHANGELOG.md @@ -1,5 +1,103 @@ # @hyperdx/api +## 2.48.0 + +### Minor Changes + +- 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. + +### 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. +- 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 +- ed8520119: fix(mcp): reject unknown tool arguments instead of silently ignoring them +- 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` +- 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 [b362d339a] +- Updated dependencies [a1a5eacde] +- Updated dependencies [4188b80fe] +- Updated dependencies [f36e6788f] +- Updated dependencies [b51ddb9d5] +- 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 c524895e2d..258d27eb1a 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..6bab5990a7 100644 --- a/packages/app/CHANGELOG.md +++ b/packages/app/CHANGELOG.md @@ -1,5 +1,94 @@ # @hyperdx/app +## 2.48.0 + +### Minor Changes + +- 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. + +### 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. +- 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. +- 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. +- 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 +- 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 [6569e326d] +- Updated dependencies [f874e3414] +- Updated dependencies [b362d339a] +- Updated dependencies [a1a5eacde] +- Updated dependencies [4188b80fe] +- Updated dependencies [2e233f768] +- Updated dependencies [f36e6788f] +- Updated dependencies [5bd07d54b] +- Updated dependencies [c499769a3] +- Updated dependencies [e4fe80a6d] +- Updated dependencies [ed8520119] +- Updated dependencies [b51ddb9d5] +- Updated dependencies [48fcaf5ba] +- Updated dependencies [6a7164c9c] +- Updated dependencies [3be2ea1ba] +- Updated dependencies [58a59e366] +- 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 30c4404ce2..dbd441ee19 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 1fdb14859e..d2efcb7953 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..bddc266744 100644 --- a/packages/common-utils/CHANGELOG.md +++ b/packages/common-utils/CHANGELOG.md @@ -1,5 +1,57 @@ # @hyperdx/common-utils +## 0.37.0 + +### Minor Changes + +- 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. + +### 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. +- 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 +- b51ddb9d5: fix: apply source query settings to metric explorer, metric name, attribute, and Kubernetes facet lookups +- 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 a7979d89e1..c0460696bd 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: