Introducing a new way to review your PRs.

Read the announcement

hyperdxio / hyperdx

Resolve production issues, fast. An open source observability platform unifying session replays, logs, metrics, traces and errors powered by ClickHouse and OpenTelemetry.

View on GitHub

19 documents · Updated Oct 30, 2026

docs / service-and-infrastructure-views

Service and infrastructure views

Service and infrastructure views turn telemetry into focused screens for checking application health and its runtime context. Service dashboards and maps explain traffic between services, while the Kubernetes dashboard connects pod, node, and namespace health with related logs and events. These views sit below Dashboards and visualization, link back to Explorer and query experience for source-record inspection, and provide related paths for LLM observability, Trace investigation, Search and log exploration, and the Observability platform.

Service dashboard

The service dashboard in packages/…/ServicesDashboardPage.tsx is a trace-based view of request behavior for a selected service. An engineer chooses a trace source, service, time range, and search condition, then uses the result to move from a broad service signal to a specific endpoint, database query, or error. The page keeps this context in its navigable view state, so a shared link can preserve the source, service, search language, active view, and time range.

The page accepts a source name or ID in a shared link. It resolves that value to an enabled trace source and falls back to the first enabled trace source when the value is missing or unusable. The resolved ID becomes the canonical source value used by the dashboard and its drilldowns. Service dashboard conditions use SQL as the default query language because the dashboard applies them to its metric queries.

The dashboard builds its shared service fields from the selected source and its table metadata. This lets one view work with trace sources that store attributes as maps or JSON and with sources that provide a materialized endpoint field. The same field meaning is used by the overview charts and by links into query detail.

Service overview

The dashboard groups service work into three views. Each view answers a different question while using the same source and time range.

ViewMain questionMain signals
HTTP ServiceAre requests fast and successful?Request latency, throughput, error rate, and the busiest endpoints
DatabaseWhich database work consumes time or volume?Total query time, query throughput, and the top queries
ErrorsWhich services produce errors?Error events grouped by service over time

The dashboard applies the selected service and search conditions to these signals. It also supports saved dashboard filters outside local mode, so a team can keep a common service view without changing each chart by hand. The shared source expressions allow the view to work with trace sources whose field names or duration units differ.

References: packages/…/ServicesDashboardPage.tsx• L142-230 packages/…/ServicesDashboardPage.tsx• L313-457 packages/…/serviceDashboard.ts• L180-239

Service drilldowns

Rows in the HTTP and Database views act as context links rather than dead-end summaries. Selecting an endpoint opens request error rate, request throughput, endpoint performance, latency, and slow transaction data. Selecting a database query opens total query time, query throughput, and the slowest five percent of queries for the same service and time range.

The drilldowns preserve the selected service. This keeps a value such as an endpoint or query tied to the service that produced it and gives the engineer a path to the underlying trace records. Database query detail checks the supported statement fields in their defined order, then keeps the service condition as a separate scope. The slow-event views show the records above the measured high-latency threshold, which helps connect an aggregate signal to individual events.

References: packages/…/HttpTab.tsx• L396-567 packages/…/ServiceDashboardEndpointSidePanel.tsx• L30-69 packages/…/ServiceDashboardEndpointSidePanel.tsx• L106-215 packages/…/DatabaseTab.tsx• L305-333 packages/…/ServiceDashboardDbQuerySidePanel.tsx• L29-73 packages/…/ServiceDashboardDbQuerySidePanel.tsx• L94-197 packages/…/serviceDashboard.ts• L145-177

Service map

The service map in packages/…/DBServiceMapPage.tsx presents traced service relationships as a directed graph. It is useful when an engineer needs to see callers and callees before choosing a service or trace search to inspect in more detail. The page resolves a trace source from a URL name or ID and keeps the selected source, service focus, trace filter, query language, time range, and sampling choice in the view state.

Topology graph

The map treats a service as a node and a traced client-to-server request as an edge. It derives both from matching client, producer, server, or consumer spans in the selected time range. The graph keeps an aggregate node for each service and separate edge statistics for each known caller, so uninstrumented callers can still contribute to a service total without creating a misleading edge.

The map uses visual size for total traffic and lets the engineer color the graph by error rate, latency, or throughput. Latency uses the p95 value when the trace source provides duration data. Error colors use fixed severity bands, while latency and throughput use a relative scale across the graph. Counts and latency values can be approximate because the map can sample traces to keep large graphs usable.

This diagram shows how trace spans become a topology view and then lead to focused investigation.

flowchart LR
    A[Trace spans] --> B[Caller and callee relationships]
    B --> C[Service nodes and request edges]
    C --> D[Error, latency, or throughput view]
    D --> E[Trace search for requests or errors]

References: packages/…/useServiceMap.tsx• L28-190 packages/…/useServiceMap.tsx• L241-287 packages/…/ServiceMap.tsx• L138-221 packages/…/ServiceMapLegend.tsx• L20-52 packages/…/utils.ts• L48-95 packages/…/utils.ts• L129-235

Map interactions

The map supports a time range, free-text or SQL span filter, a service filter, and a sampling control. The service filter can show selected services, while focusing one node narrows the graph to that service and its immediate callers and callees. Selecting the focused service again clears the focus. The sampling control changes the trade-off between graph coverage and query cost; a URL value takes priority over the local saved choice, so shared links reproduce the sender's view.

A service source name in a link is converted to its source ID after the source list loads. If no enabled trace source exists, the page shows an empty state instead of a graph and directs the engineer to configure a source. The page also supports a source schema preview when the selected source allows it.

A node tooltip shows incoming request volume, error rate, and available latency or throughput values. Selecting request or error counts opens trace search with the map time range, source, and matching service conditions.

The map can also be used for one trace. In that case it shows the relationships found in that trace and does not present a per-second rate as if the trace were a full traffic sample. This distinction keeps a trace topology useful for path analysis without overstating its traffic volume. A service focus action is available for traffic maps but not for a single-trace map.

The same single-trace map is available as a beta panel in trace detail. The panel uses the selected trace source and date range to show the relationships within that trace, so an engineer can inspect service flow without leaving the trace investigation context.

References: packages/…/DBServiceMapPage.tsx• L85-239 packages/…/DBServiceMapPage.tsx• L243-424 packages/…/ServiceMapSidePanel.tsx• L9-45 packages/…/ServiceMapLegend.tsx• L55-109 packages/…/ServiceMapNode.tsx• L56-105 packages/…/ServiceMapTooltip.tsx• L24-90 packages/…/ServiceMapTooltip.tsx• L92-171 packages/…/utils.ts• L237-340

Kubernetes dashboard

The Kubernetes dashboard in packages/…/KubernetesDashboardPage.tsx combines Kubernetes metrics with logs from the same environment. It gives an engineer a resource-level view of pod status, node capacity, namespace health, and Kubernetes warning events for a shared time range.

Source pairing

The dashboard uses one log source for events and contextual records and one metric source for resource health. Source selectors accept a source name or ID. When a source defines a correlation to the other source, changing one source selects its paired source. If no explicit pair exists, the dashboard can choose compatible log and metric sources on the same connection. A missing correlation limits which parts of the dashboard can provide cross-signal context.

The dashboard keeps source choices, search text, active tab, and time range in the page state. This lets a resource selection open a detail view without losing the filters that led to it.

References: packages/…/KubernetesDashboardPage.tsx• L913-1014 packages/…/KubernetesDashboardPage.tsx• L1016-1182 packages/…/KubernetesDashboardPage.tsx• L1192-1255

Resource views

The dashboard has three resource views. Each combines charts with a table so an engineer can see both an overall trend and the specific resources behind it.

ViewResource signalsRow-level context
PodsCPU, memory, status, age, and restartsPod, namespace, and node names
NodesCPU, memory, readiness, and uptimeNode status and current resource use
NamespacesAggregate pod CPU and memory plus namespace phaseNamespace status and aggregate resource use

The Pods view also shows recent Kubernetes warning events. Pod rows, node rows, and namespace rows open the matching contextual detail panel. Pod rows can be narrowed by phase and sorted by key health values. Broad resource tables use a fetch limit, so the dashboard asks the engineer to use filters when the environment has more resources than the view can show.

References: packages/…/KubernetesDashboardPage.tsx• L152-247 packages/…/KubernetesDashboardPage.tsx• L315-385 packages/…/KubernetesDashboardPage.tsx• L542-743 packages/…/KubernetesDashboardPage.tsx• L745-941 packages/…/KubernetesDashboardPage.tsx• L1395-1567 packages/…/KubernetesDashboardPage.tsx• L1569-1733

Infrastructure filters

The filter bar supports pod, deployment, node, namespace, and cluster fields together with a free-text condition. The selected conditions apply to the resource charts and tables. An optional linked mode narrows each field's choices using the other selected fields, which helps find valid combinations in a large cluster.

The filters use the same resource attribute names as the metric source. This makes a filter such as a namespace or node selection carry from the overview into the resource list and then into a detail panel.

References: packages/…/KubernetesFilters.tsx• L15-49 packages/…/KubernetesFilters.tsx• L115-172 packages/…/KubernetesFilters.tsx• L187-251 packages/…/KubernetesDashboardPage.tsx• L1373-1379

Contextual detail panels

The node, namespace, and pod panels provide a second level of inspection without leaving the Kubernetes dashboard. A panel scopes metric charts, status data, events, and logs to the selected resource and uses the same time range as the dashboard.

Panel relationships

The panels form a useful context chain. A pod identifies its node and namespace. A node or namespace can show the pods that belong to that context. A log or event row can then open the normal telemetry row detail view for deeper inspection.

Selections are part of the page link, so a panel can be opened from a table row and closed without rebuilding the rest of the dashboard state. A pod panel can also appear above a node or namespace panel when the engineer moves from a broader resource to one of its pods.

References: packages/…/KubernetesDashboardPage.tsx• L1346-1371 packages/…/PodDetailsSidePanel.tsx• L216-240 packages/…/NodeDetailsSidePanel.tsx• L237-254 packages/…/NamespaceDetailsSidePanel.tsx• L224-241

Pod details

The pod panel is the most specific infrastructure view. It shows the pod's node, namespace, UID, and deployment when those values are present. It then combines CPU and memory charts, recent Kubernetes events, and the latest pod logs and spans.

The event timeline follows the selected dashboard time range and links each event to a short time-bounded search for the related pod. The log table can switch between all records and errors, so the engineer can move from a restart or warning to the related application records.

References: packages/…/PodDetailsSidePanel.tsx• L54-127 packages/…/PodDetailsSidePanel.tsx• L130-213 packages/…/PodDetailsSidePanel.tsx• L333-469 packages/…/KubeComponents.tsx• L167-318

Node details

The node panel describes node readiness and uptime, then shows CPU and memory trends for pods on that node. It includes a pod status table and the latest node logs and spans. This makes it a bridge between host-level symptoms and the workloads placed on the host.

References: packages/…/NodeDetailsSidePanel.tsx• L53-147 packages/…/NodeDetailsSidePanel.tsx• L149-234 packages/…/NodeDetailsSidePanel.tsx• L339-457

Namespace details

The namespace panel shows namespace status and aggregate CPU and memory trends for its pods. It includes the pods in that namespace and the latest namespace logs and spans. This view helps separate a namespace-wide condition from a problem isolated to one pod or node.

References: packages/…/NamespaceDetailsSidePanel.tsx• L52-134 packages/…/NamespaceDetailsSidePanel.tsx• L136-221 packages/…/NamespaceDetailsSidePanel.tsx• L326-444

Change checklist

When these files or sections are changed, remember to consider these:

  • Keep the service dashboard's source expressions aligned with every HTTP, database, error, endpoint, and slow-event view. A source field change can silently remove a whole class of service results.
  • Keep source resolution aligned with service selection and drilldown state. A source name in a link must resolve to the same enabled trace source ID used by the dashboard and its panels.
  • Preserve the SQL-first meaning of service dashboard conditions when changing query-language defaults or search controls. A language mismatch can make a valid condition fail across the dashboard's metric queries.
  • Keep map and JSON attribute access aligned with the selected source metadata. A source can expose the same field through a map or a JSON object, but the query form is not interchangeable.
  • Keep the materialized endpoint choice aligned with the endpoint grouping and endpoint drilldown filters. A missing or renamed endpoint field must fall back to the span name rather than produce empty endpoint views.
  • Keep database statement matching aligned across the aggregate query list and the query detail panel. The detail condition must cover each supported statement field and keep its precedence and escaping intact.
  • Keep service-map span matching aligned with node and edge metrics. A change to client/server span rules can change the topology without changing the source data.
  • Keep service-map metric colors, legend labels, and tooltip values aligned. Error-rate bands have fixed meanings, while latency and throughput are relative to the graph; latency is shown as p95 in the legend and as p50, p95, and p99 in the tooltip.
  • Keep service-map no-data styling distinct from a zero-error service. A caller-only service has no measured incoming requests and must not appear to have a clean error record.
  • Keep service-map URL state aligned with source canonicalization, service focus, search language, time range, and sampling persistence. A mismatch can make shared links show a different graph from the one the sender saw.
  • Keep the single-trace side panel restricted to trace sources and pass the selected trace ID and date range through to the map. Otherwise the panel can appear without a valid topology context.
  • Keep Kubernetes log and metric source correlation behavior aligned with the detail-panel requirement for both source types. A dashboard can still show metric summaries while contextual logs or events are unavailable.
  • Keep k8s.* filter names consistent across the filter bar, resource groupings, table links, and panel scopes. A mismatch can make a selection appear to work while returning unrelated data.
  • Preserve the page-state names used by resource links and panels when changing navigation. Those links carry the selected resource, time range, source choices, and filters together.

Important failure modes

TriggerConsequenceGuard
No usable trace source is configuredThe service dashboard and service map cannot show service dataConfigure an enabled trace source before using either view
A source name or invalid source ID is used in a service dashboard link while no enabled trace source existsThe page has no effective source and shows the trace-source promptUse a link that names an enabled trace source, or configure one
Trace attribute metadata is unavailable or identifies the attribute field with the wrong typeService charts and database query filters can remain loading or use an invalid field formWait for source metadata and keep map or JSON column metadata aligned with the trace schema
A trace source has no duration dataService-map latency coloring and latency values are unavailableUse error rate or throughput for that source, or add duration data
The map uses a high sampling factorRequest counts and latency estimates can be approximate and small relationships may not appearLower the sampling factor for coverage, or narrow the time range and filters
A service has no measured incoming requestsThe error-rate view can show no data rather than implying that the service has no errorsTreat the outlined node as missing incoming-request data and inspect the source or time range
A database statement is stored under a field not covered by the source expressionsThe database list or query detail can omit matching queriesAdd the field to the source mapping and preserve its precedence in statement matching
Logs and metrics are not correlated on the Kubernetes dashboardResource metrics may load, but warning events and cross-signal detail panels cannot provide full contextSelect compatible sources or configure their source correlation
Kubernetes data exceeds the table fetch limitThe resource list shows only the first batch and may hide the target resourceUse pod, node, namespace, deployment, or cluster filters
A resource has no matching records in the selected time rangeIts panel or chart can be empty even when the resource existsWiden the time range and check the source and resource filters

Key files

FileWhy to read it
packages/…/ServicesDashboardPage.tsxDefines service-dashboard state, trace-source resolution, service selection, query language, time range, tabs, saved filters, and drilldown entry points.
packages/…/serviceDashboard.test.tsProtects the source-field, JSON-or-map attribute, endpoint fallback, and database statement filter contracts used by service views.
packages/…/serviceDashboard.tsDefines the shared meaning of service, endpoint, duration, error, Kubernetes attribute, and database statement fields across trace sources.
packages/…/HttpTab.tsxShows the HTTP service health questions and endpoint drilldown links.
packages/…/DatabaseTab.tsxShows how database time and query volume become service-level views.
packages/…/ServiceDashboardDbQuerySidePanel.tsxShows how a selected database statement becomes a service- and time-scoped detail view.
packages/…/DBServiceMapPage.tsxDefines service-map source resolution, URL state, service filters, sampling behavior, time range, schema preview, and the no-source state.
packages/…/useServiceMap.tsxDefines the relationship between traced callers and callees and the aggregate map data.
packages/…/ServiceMap.tsxDefines the graph-level presentation, metric choices, and topology layout.
packages/…/ServiceMapSidePanel.tsxShows the beta single-trace map in the trace detail context.
packages/…/KubernetesDashboardPage.tsxDefines Kubernetes source pairing, resource tabs, charts, tables, events, and panel entry points.
packages/…/KubernetesFilters.tsxDefines the resource filter fields and their relationship to the metric source.
packages/…/KubeComponents.tsxDefines the Kubernetes event timeline and the status labels used by resource views.
packages/…/PodDetailsSidePanel.tsxDescribes the pod-level bridge between metrics, Kubernetes events, logs, and spans.
packages/…/NodeDetailsSidePanel.tsxDescribes node health, node workload context, and node logs.
packages/…/NamespaceDetailsSidePanel.tsxDescribes namespace health, namespace workload context, and namespace logs.