Grafana Dashboards Overview

How to visualize Sophonz OpenTelemetry telemetry data in Grafana.

Sophonz collects traces, metrics, and logs via OpenTelemetry. That data is stored in ClickHouse and Prometheus, then visualized in real time through provisioned Grafana dashboards. The session dashboards let you follow one user's screens and requests, then continue into the servers those requests went through and their logs, in one flow.

Data flow

Telemetry sent from your apps is stored in ClickHouse; the Grafana dashboards query that stored data and display it.

grafana-pipeline
  • The Sophonz SDK sends traces, logs, and metrics in OTLP format from the app.
  • The OpenTelemetry Collector receives the data, applies batch processing, and exports it to each storage backend.
    • Traces → ClickHouse (sophonz_traces database)
    • Logs → ClickHouse (sophonz_logs database)
    • Span metrics (derived from traces) → ClickHouse (sophonz_metrics_* tables)
    • Session aggregates → ClickHouse (stored_analysis_session table)
  • Grafana queries ClickHouse and Prometheus via provisioned datasources and renders the dashboards.

Provisioned dashboards

Sophonz provisions nine v3 dashboards into Grafana. Apart from the browser-only RUM dashboard they are not split by platform: web, iOS and Android share one dashboard, and you pick with the serviceNamespace (project) and serviceName (app) variables.

DashboarduidWhat it shows
Sophonz Service (v3)sophonz-service-v3Request flow, KPIs, web vitals, traces, error grouping, screens, session list
Session (v3)sophonz-session-v3A session list and the selected session's timeline, screen flow and traces
Sophonz Session Listsophonz-session-list-v3A session list with many filters
Sophonz Session Detailsophonz-session-detail-v3One session's timeline, screen flow, service flow and traces
Sophonz Tracessophonz-traces-v3Trace and span search with a Gantt view
Sophonz Logssophonz-logs-v3OpenTelemetry log search
Request Map (v3)sophonz-requestmap-v3Request response-time heatmap
Sophonz RUM (v3)sophonz-rum-v3Browser sessions: Core Web Vitals gauges and trend, page loads by screen, fetch/XHR latency, browser and OS share, user actions
Sophonz Charts (v3)sophonz-charts-v3Latency distribution, speed shares per service, query phases and span counts, drawn with the Sophonz Chart panels
Sophonz Service (v3) — from request flow and KPIs through web vitals, traces, errors, screens and sessions

Click a card to jump to that dashboard's section in the reference.

Per-panel queries and how each number is computed are in the Dashboard Reference; custom panel options and JSON are in Custom Panels and Sophonz Chart Panels.

Sessions

Every span carries a sessionID, so front-end behavior and back-end traces are viewed together, one session at a time. Three dashboards work with sessions.

DashboardUse it to
Session (v3)Pick a session from the list and see it right below
Sophonz Session ListFind sessions by user, device, app version and other filters
Sophonz Session DetailLook at one session in depth

Session Detail shows:

  • Session Timeline — the session's spans on one time axis, in lanes by type such as render, xhr, longtask and webvitals.
  • Screen Flow — navigation between screens as a graph. Clicking a screen zooms the timeline to the time spent on it.
  • Service Flow — the servers the session's requests went through, and the components inside them (handlers, Prisma, pg …), as nodes and edges.
  • Trace list and Gantt view — the trace picked in the timeline or list, unfolded span by span, with a link to its logs.

The panel layout is in the Dashboard Reference, and how each panel behaves is in Custom Panels.

Querying directly

For questions the dashboards do not answer, ask ClickHouse with SQL. Use the same grafana-clickhouse-datasource the dashboards use, from Grafana Explore or a new panel's query editor.

TableOne row is
sophonz_traces.distributed_sophonz_index_v2One span
sophonz_traces.distributed_sophonz_error_index_v2One error
sophonz_traces.stored_analysis_sessionAggregated session state
sophonz_logs.distributed_logs_v2One log record

Starting from a query copied out of an existing panel is fastest. Column fallbacks, macros and the aggregation mistakes to avoid are covered in When you edit a query.

Relationship to Sophonz Dashboard

Grafana is the expert query and alerting tool for SREs and operators. Developers and PMs consume the same observability data through the Sophonz Dashboard product UI.

grafana-layers

The Grafana Provisioning service automatically projects Sophonz app and project metadata into Grafana datasources, folders, and dashboards. It also issues signed embed URLs so that individual Grafana panels can be embedded inside the Sophonz Dashboard.

Accessing dashboards

Grafana is available at https://grafana.example.com. Authentication is handled over OAuth2/OIDC — signing in with your Sophonz account automatically creates a Grafana session.

NOTE — Auto-reload

The provisioning configuration sets updateIntervalSeconds: 10. Any new or updated dashboard JSON files placed in the provisioning directory are picked up by Grafana within 10 seconds, with no restart required.

Datasources

DatasourcePluginPurpose
ClickHousegrafana-clickhouse-datasourceTraces, logs, and span metrics (default)
ClickHouse-Altinityvertamedia-clickhouse-datasourceSupplementary ClickHouse queries
PrometheusBuilt-inInfrastructure and application metrics
PostgreSQLBuilt-inApplication relational data

For datasource configuration files and dashboard provisioning steps, see Dashboard Setup.