Customer metrics query
log10x_customer_metrics_queryQuery customer metrics backend with raw PromQL to explore labels, run one-off expressions, or verify metrics for cross-pillar investigations.
Instructions
Low-level PromQL passthrough to the customer metric backend configured via LOG10X_CUSTOMER_METRICS_URL. Returns the raw Prometheus response shape plus metadata about which backend served the query. This is the escape hatch for cross-pillar investigations the higher-level primitives don't cover — use it to explore the customer backend's label universe, run a one-off PromQL expression, or verify that a specific metric exists before correlating against it. For typical cross-pillar workflows, compose the deterministic primitives: log10x_metrics_that_moved → log10x_rank_by_shape_similarity → log10x_metric_overlay.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | End of the range window. Required when mode=range. | |
| mode | No | `instant` runs a point-in-time query; `range` runs over a time window with a bucket step. | instant |
| step | No | Bucket step for range queries, in seconds. Required when mode=range. | |
| start | No | Start of the range window — ISO8601 or UNIX seconds. Required when mode=range. | |
| promql | Yes | PromQL expression to execute against the customer metric backend. Example: `apm_request_duration_p99{service="payments-svc"}`. |
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 |