> ## Documentation Index
> Fetch the complete documentation index at: https://docs.e6data.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Metrics and profiling

> Interpret metric history and inspect execution profiles for queries and workload runs.

Reference

Metric charts summarize engine activity. Execution profiles describe a selected query, run, task, or attempt. Use the relevant execution identity when comparing results.

## Metric history

The console queries retained metrics from GreptimeDB. It does not combine an in-memory history with saved samples. Charts depend on the telemetry database and its delivery health.

The metric view covers a maximum 15-minute window with five-second steps. Filters apply to the dimensions present on each metric. Missing samples remain gaps. A missing sample is not a zero value.

## Interpret values

Counters show rates. A rate requires samples from the same producer and reset segment. Gauges show sampled values. Duration charts estimate percentiles from histogram data; these estimates depend on the available buckets and samples.

Parent and child execution scopes measure different work. Preserve their scope when comparing or aggregating values. Prepared output, accepted writes, and confirmed publication also describe different stages.

## Logs and traces

The controller sends logs, metrics, and completed spans to local GreptimeDB. It can also export telemetry to an external OpenTelemetry collector. Workers report through the controller.

Local retention defaults are 24 hours for metrics, one hour for logs, and 15 minutes for completed spans. Delivery queues are bounded. Queue overflow, expiry, and process loss can lose records. Retained telemetry is not a durable audit store.

See [Telemetry configuration](https://docs.e6data.com/transformation/reference/configuration/telemetry.md) for storage, retention, delivery limits, and export settings.

## Profile one query or workload run

Enable the deployment's Xray feature flag to allow detailed profiling. In
Workbench, choose **Run with profiling** for one worker-executed statement. In a
workload's Run dialog, select **Enable profiling for this run**. The choice is off
by default and does not change later scheduled runs.

The **Profiling** tab appears on query, run and task details after a capture is
saved. Select a task and attempt. CPU, memory, disk I/O and CPU throttling use
area charts in a two-column grid. The controller has a separate capture.

Use **Stages** for total duration and event counts. **Data flow** shows rows,
bytes, throughput, decode time, waits and output files. **Operators** shows the
native query plan. **Inputs & settings** shows compute limits, input versions
and saved checks. **Compare** compares a previous run or an attached baseline.
Ratios appear only when the inputs, compute budget, profiling mode and checks
match.

Run wall time, executor time, native SQL and profile storage have separate
fields. Stage work can overlap. Resource summaries cover all collected samples,
even when the chart history is sampled. CPU averages need at least 500 ms of
coverage. Missing values stay empty. Failed and cancelled runs retain available
captures.

Select **Download JSON** to save the same report served by the engine. Profiles
remain available after result cleanup and session close while run metadata and
profile objects are retained.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.