Handbook - Concepts

Metrics And Dashboards

CloudGrid separates metric exploration from saved dashboard composition.

On this page

CloudGrid separates metric exploration from saved dashboard composition.

RouteJob
/metricsDiscover metric names, inspect descriptors, query series, test aggregations, group by attributes, and inspect exemplars.
/dashboardsBuild saved visual workspaces from typed metric, log, trace, and live trace widgets.

The split is intentional. Metrics are technical telemetry evidence. Dashboards are reusable project configuration.

Metric Explorer

The metric explorer uses:

  • Query.metricNames for metric discovery;
  • Query.metricSeries for ordinary series queries;
  • Query.richMetricSeries for rich dashboard metric computations.

Storage-read owns aggregation compatibility:

Metric kindSupported aggregations
gaugeavg, min, max, count
sumsum, rate, count
histogramavg, count, sum, p50, p90, p95, p99
exponential_histogramavg, count, sum, p50, p90, p95, p99
summaryavg, count, p50, p90, p95, p99 when quantiles exist

Unsupported combinations return a canonical validation error. The frontend does not calculate missing aggregations locally.

Dashboard Workspace

Dashboards are control-plane records scoped to one project. Dashboard widgets are typed. They do not store executable code, raw SQL, raw SurrealQL, arbitrary JSON, bearer tokens, provider secrets, or external embeds.

Widget execution paths:

Widget kindExecution path
metric_timeseriesQuery.metricSeries
metric_statQuery.metricSeries
metric_tableQuery.metricSeries
metric_richQuery.richMetricSeries
log_tableQuery.logs
trace_tableQuery.traces
live_trace_tableSubscription.liveTraces

Dashboard pins are user preferences returned by dashboard contracts and pin mutations. They are not browser-local shortcuts.

Computation Boundary

diagram
Frontendrender + draft state BFFGraphQL validation control-planedashboard definitions storage-readmetric/log/trace execution SurrealDB
Mermaid diagram rendered with beautiful-mermaid.

The frontend may draft layout and display choices. It must not compute metric rates, percentiles, formulas, trace counts, log counts, or dashboard widget telemetry from broad raw records.

Next Step

Use Metrics guide for exploration and Dashboards guide for saved workspaces.

Last updated .