Skip to content

Graph view for service_graph connector metrics (node/edge service map in dashboards) #3857

Backlog

Description

@bahltushar

Problem

The Service map (beta) builds its nodes and edges from spans in a Traces source. Some teams can't or don't store every span, so they use the OpenTelemetry servicegraph connector to produce parent → child metrics instead:

  • traces_service_graph_request_total
  • traces_service_graph_request_failed_total
  • traces_service_graph_request_server_seconds / _client_seconds (histograms)

These are queried through a Prometheus-compatible endpoint with PromQL. Dashboard tiles can show them as time series and tables, but there is no way to draw them as a node-and-edge graph like the Service map. Teams that want a service-map view from metrics have to run a separate tool.

Use case

  • See which services call which, with req/s, error rate and p95 per edge, for a chosen service and its upstream and downstream neighbours.
  • Use the same interaction as the Service map: pick a service, set depth, colour nodes by error rate, latency or throughput.
  • Keep the view inside ClickStack, next to the dashboards it complements.

Proposal

Any of these would meet the need. We would appreciate maintainer input on which fits the roadmap:

  1. A graph panel type for dashboards that takes node and edge data from a PromQL or SQL query.
  2. A data-source option for the Service map page so it can read from service_graph metrics instead of spans.
  3. Documentation of a recommended way to render service-graph metrics, if a built-in view is out of scope.

Known limitations we have seen

  • The connector pairs client and server spans only when both reach the same collector instance within its store TTL. With several replicas, some edges are missed or appear as server="unknown". A view built on these metrics inherits that gap, so the docs should say so.
  • Histogram-based p95 is an estimate, especially for short windows.
  • The Service map and the metrics view can disagree because of sampling and pairing differences.

Environment

  • ClickStack / HyperDX version: 2.47.0
  • Metrics store: Prometheus-compatible (PromQL)
  • Collector: OpenTelemetry Collector with the servicegraph connector

Questions

  • Is a graph view over service_graph metrics in scope for ClickStack?
  • If so, should it be a dashboard panel or a data source for the existing Service map?
  • Is there a preferred way to handle missing edges from pairing gaps?

Service-map-style graph based on ServiceGraph metrics (please note this is on the basis of demo data)

image

Activity

  1. added
    enhancement
    Needs Feedback
    on Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs Feedbackenhancementexternal

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions