How we built the Datadog heatmap to visualize distributions over time at arbitrary scale
Datadog's heatmap visualizes DDSketch-backed distribution metrics over time, revealing multimodal behavior (such as pulsing benchmark traffic or health-check modes) that percentile lines hide. The frontend receives a constant-size payload of float32 bin counts with shared, explicitly stored bucket boundaries. Time buckets must align to the data's reporting interval to avoid aliasing. Because counts often follow power-law distributions, the color scale is a heuristic blend of linear and histogram-equalized (percentile) interpolation, so both a dominant narrow mode and faint secondary modes stay visible. Rendering switches to per-pixel canvas ImageData instead of per-bin fillRect above roughly 4 raw pixels per bin, and a coarser, size-relative grid drives mouse interactions and tooltips.
Related posts
- Steganography at scale: Embedding share URLs in Datadog widget screenshots
Datadog Engineering mediumAdeptDatadog embeds an 8-byte snapshot ID invisibly into the 1 px border of every dashboard widget so screenshots can be resolved back to the full widget context (queries, time range, template variables), with definitions cached in Redis for one hour keyed by org ID plus widget ID. A first scheme packing a byte per pixel via RGB offsets broke under display color-profile conversion (e.g., DCI-P3 shifting channels by ±1) and was sometimes visible. The final design uses fuzzy encoding: ±3 offsets on red and green carry 2 bits per pixel, decoded within tolerance ranges, with blue-shifted sentinel pixels marking a 34-pixel watermark. The system also handles device pixel ratios and copy-paste workflows, and renders over a billion watermarks per day with an estimated ~1 in 37 million collision probability.
- Faster root cause for slow traces with ClickStack Event Deltas
ClickHouse mediumAdept
ClickStack's Event Deltas compare a user-selected region of slow spans on a duration-over-time heatmap against the remaining inlier spans, issuing two queries and sampling both sets to surface attribute values disproportionately present in the outliers. In the OpenTelemetry demo this pinpoints Visa card type as correlated with slow payment spans. It works best on a single service, with a clean separation between fast and slow spans and enough samples in both groups. A recent update allows custom y-axis expressions, such as casting db.response_time_ms to UInt64, and aggregate color-intensity metrics, which isolated slow getPackageRanking queries in ClickPy.
- How to Export Datadog Metrics for Exploration in Jupyter Notebooks
Shopify Engineering mediumAdeptDatadog dashboards aggregate metrics more coarsely as the time window grows (e.g. 1-second points over 15 minutes become 2-hour points over 30 days), hiding short-lived events and limiting statistical analysis. To get full-granularity data, query the Datadog REST API from Python with an API key and APP key, split the start–stop range into time_delta buckets, call the API per bucket, and concatenate the results into a pandas DataFrame. The data can then be explored in Jupyter, for example as seaborn KDE plots of CPU utilization. If you hit Datadog's API rate limits, increase time_delta so fewer requests are made.
- What's new in ClickStack - March 2026
ClickHouse mediumAdept
ClickStack's March 2026 update reworks Event Deltas for root-cause analysis. Attribute distributions now show without a selection, attributes are ranked by proportional rather than raw-count deltas so unequal group sizes don't skew results, and heatmap sampling uses ORDER BY cityHash64(SpanId) instead of rand() so it is repeatable. Raw SQL charts now cover all visualisation types, with Grafana-style macros ($__timeFilter, $__timeInterval, $__filters, $__sourceTable) that inherit dashboard time ranges and filters and survive import/export. Sample-aware aggregations driven by a per-span sampleRateExpression rewrite count, avg, sum and percentiles into weighted forms such as quantileTDigestWeighted. The release also adds AI Notebooks in private preview, dashboard listing pages and a template gallery.
- Level Up With Derived Columns: Understanding Screen Size (With Basic Arithmetic)
Honeycomb mediumAdeptHoneycomb's derived columns can compute values at query time instead of sending redundant fields from instrumentation, for example multiplying window height and width into a pixel area with MUL. Dividing window area by screen area with DIV gives a screen_used ratio. Heatmaps of that ratio show most users already fill nearly all of their screen, with almost nothing above 0.95, which suggests browser chrome takes about 5% and argues against enlarging the UI. Other uses include normalizing seconds to milliseconds and SUMming page-load phase timings, which keeps instrumentation DRY.