Metric overlay
log10x_metric_overlayOverlay an anchor and candidate timeseries on the same aligned bucket grid to verify a suspect metric side-by-side, returning raw peaks plus deterministic facts for manual interpretation.
Instructions
Third step of cross-pillar investigation: return aligned anchor + candidate timeseries plus deterministic facts (peak_at, peak_offset_seconds, n_buckets_aligned). No Pearson, no tier — pure raw data for the agent to interpret. Use this once log10x_rank_by_shape_similarity has narrowed to a single suspect, or to manually verify any anchor/candidate pair side-by-side. Bucket size auto-selected from window length; both series are right-aligned to the same trailing bucket grid so a sparse anchor and dense candidate compare on the same chaos window.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| step | No | Bucket step. Smaller = more samples + more cost. Default 30s. | 30s |
| anchor | Yes | The anchor identity. For `log10x_pattern`: the pattern symbol_message (e.g. `error_processing_payment_$`). For `customer_metric`: a PromQL expression (e.g. `apm_request_duration_p99{service="payments"}`). | |
| window | No | Time window. PromQL-style duration: `15m`, `1h`, `6h`, `24h`. Alias: `timeRange`. | 1h |
| candidate | No | The candidate metric to overlay against the anchor. Must be a customer-side PromQL expression that returns a single series. Alias of `candidates[0]` — pass either form (sibling tools metrics_that_moved and rank_by_shape_similarity use `candidates` array; this tool accepts both for consistency). | |
| timeRange | No | Alias for `window`. | |
| candidates | No | Candidates array. Accepted for parity with metrics_that_moved + rank_by_shape_similarity. Only the first element is overlaid (metric_overlay is single-candidate by design — use rank_by_shape_similarity to rank N first, then overlay the winner). | |
| anchor_type | Yes | Which side the anchor comes from. `log10x_pattern`: anchor is a 10x pattern symbol_message. `customer_metric`: anchor is a customer PromQL expression. | |
| environment | No | Environment nickname (for multi-env setups). | |
| max_buckets | No | Max buckets to return in the aligned output. Pre-truncates from the most recent end if window/step exceeds this. | |
| customer_metrics_url | No | Per-call override for the customer metrics backend URL. Wins over LOG10X_CUSTOMER_METRICS_URL env var. Use when MCP was launched with an empty/stale URL. | |
| customer_metrics_auth | No | ||
| customer_metrics_type | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| tool | Yes | ||
| view | No | summary | |
| images | No | ||
| actions | No | ||
| summary | Yes | ||
| warnings | No | ||
| truncated | No | ||
| next_cursor | No | ||
| render_hint | No | ||
| generated_at | Yes | ||
| schema_epoch | Yes | ||
| schema_version | Yes |