* fix configure it broken link * fixed configure Grafana agent link * fix service graph link
5.2 KiB
description | keywords | labels | menuTitle | title | weight | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Use the Service Graph and Service Graph view |
|
|
Service Graph and Service Graph view | Service Graph and Service Graph view | 500 |
Service Graph and Service Graph view
The Service Graph is a visual representation of the relationships between services. Each node on the graph represents a service such as an API or database.
You use the Service Graph to detect performance issues; track increases in error, fault, or throttle rates in services; and investigate root causes by viewing corresponding traces.
{{< figure src="/static/img/docs/node-graph/node-graph-8-0.png" class="docs-image--no-shadow" max-width="500px" caption="Screenshot of a Node Graph" >}}
Display the Service Graph
- Configure Grafana Agent or Tempo or GET to generate Service Graph data.
- Link a Prometheus data source in the Tempo data source's [Service Graph]({{< relref "./configure-tempo-data-source#configure-service-graph" >}}) settings.
- Navigate to [Explore][explore].
- Select the Tempo data source.
- Select the Service Graph query type.
- Run the query.
- (Optional) Filter by service name.
For details, refer to [Node Graph panel][node-graph].
Each circle in the graph represents a service. To open a context menu with additional links for quick navigation to other relevant information, click a service.
Numbers inside the circles indicate the average time per request and requests per second.
Each circle's color represents the percentage of requests in each state:
Color | State |
---|---|
Green | Success |
Red | Fault |
Yellow | Errors |
Purple | Throttled responses |
Open the Service Graph view
Service graph view displays a table of request rate, error rate, and duration metrics (RED) calculated from your incoming spans. It also includes a node graph view built from your spans.
{{< figure src="/static/img/docs/tempo/apm-table.png" class="docs-image--no-shadow" max-width="500px" caption="Screenshot of the Service Graph view" >}}
For details, refer to the Service Graph view documentation.
To open the Service Graph view:
- Link a Prometheus data source in the Tempo data source settings.
- Navigate to [Explore][explore].
- Select the Tempo data source.
- Select the Service Graph query type.
- Run the query.
- (Optional) Filter your results.
{{% admonition type="note" %}}
Grafana uses the traces_spanmetrics_calls_total
metric to display the name, rate, and error rate columns, and traces_spanmetrics_latency_bucket
to display the duration column.
These metrics must exist in your Prometheus data source.
{{% /admonition %}}
To open a query in Prometheus with the span name of that row automatically set in the query, click a row in the rate, error rate, or duration columns.
To open a query in Tempo with the span name of that row automatically set in the query, click a row in the links column.
{{% docs/reference %}} [build-dashboards]: "/docs/grafana/ -> /docs/grafana//dashboards/build-dashboards" [build-dashboards]: "/docs/grafana-cloud/ -> /docs/grafana//dashboards/build-dashboards"
[configure-grafana-feature-toggles]: "/docs/grafana/ -> /docs/grafana//setup-grafana/configure-grafana#feature_toggles" [configure-grafana-feature-toggles]: "/docs/grafana-cloud/ -> /docs/grafana//setup-grafana/configure-grafana#feature_toggles"
[data-source-management]: "/docs/grafana/ -> /docs/grafana//administration/data-source-management" [data-source-management]: "/docs/grafana-cloud/ -> /docs/grafana//administration/data-source-management"
[exemplars]: "/docs/grafana/ -> /docs/grafana//fundamentals/exemplars" [exemplars]: "/docs/grafana-cloud/ -> /docs/grafana//fundamentals/exemplars"
[explore-trace-integration]: "/docs/grafana/ -> /docs/grafana//explore/trace-integration" [explore-trace-integration]: "/docs/grafana-cloud/ -> /docs/grafana//explore/trace-integration"
[explore]: "/docs/grafana/ -> /docs/grafana//explore" [explore]: "/docs/grafana-cloud/ -> /docs/grafana//explore"
[node-graph]: "/docs/grafana/ -> /docs/grafana//panels-visualizations/visualizations/node-graph" [node-graph]: "/docs/grafana-cloud/ -> /docs/grafana//panels-visualizations/visualizations/node-graph"
[provisioning-data-sources]: "/docs/grafana/ -> /docs/grafana//administration/provisioning#data-sources" [provisioning-data-sources]: "/docs/grafana-cloud/ -> /docs/grafana//administration/provisioning#data-sources"
[variable-syntax]: "/docs/grafana/ -> /docs/grafana//dashboards/variables/variable-syntax" [variable-syntax]: "/docs/grafana-cloud/ -> /docs/grafana//dashboards/variables/variable-syntax" {{% /docs/reference %}}