---
title: "Enable service graphs | Grafana Enterprise Traces documentation"
description: "Learn how to enable service graphs"
---

> For a curated documentation index, see [llms.txt](/llms.txt). For the complete documentation index, see [llms-full.txt](/llms-full.txt).

[Documentation](/docs/)![breadcrumb arrow](/static/assets/img/icons/grafana-icon-breadcrumb-arrow-gray.svg) [Grafana Enterprise Traces](/docs/enterprise-traces/v2.8.x/)![breadcrumb arrow](/static/assets/img/icons/grafana-icon-breadcrumb-arrow-gray.svg) [Metrics-generator](/docs/enterprise-traces/v2.8.x/metrics-generator/)![breadcrumb arrow](/static/assets/img/icons/grafana-icon-breadcrumb-arrow-gray.svg) [Service graphs](/docs/enterprise-traces/v2.8.x/metrics-generator/service_graphs/)![breadcrumb arrow](/static/assets/img/icons/grafana-icon-breadcrumb-arrow-gray.svg) Enable service graphs

Enterprise

## Enable service graphs

Service graphs are generated in Tempo and pushed to a metrics storage. Then, they can be represented in Grafana as a graph. You need those components to fully use service graphs.

> Note
> 
> Cardinality can pose a problem when you have lots of services. To learn more about cardinality and how to perform a dry run of the metrics-generator, refer to the [Cardinality documentation](/docs/enterprise-traces/v2.8.x/metrics-generator/cardinality/).

### Enable service graphs in Tempo/GET

To enable service graphs in Tempo/GET, enable the metrics generator and add an overrides section which enables the `service-graphs` generator.

To enable service graphs when using Grafana Alloy, refer to the [Grafana Alloy and service graphs documentation](/docs/tempo/v2.8.x/configuration/grafana-alloy/service-graphs/).

### Enable service graphs in Grafana

> Note
> 
> Service graphs are enabled by default in Grafana. Prior to Grafana 9.0.4, service graphs were hidden under the [feature toggle](/docs/grafana/latest/setup-grafana/configure-grafana/) `tempoServiceGraph`.

Configure a Tempo data source’s service graphs by linking to the Prometheus backend where metrics are being sent:

![Copy code to clipboard](/media/images/icons/icon-copy-small-2.svg) Copy

```none
apiVersion: 1
datasources:
  # Prometheus backend where metrics are sent
  - name: Prometheus
    type: prometheus
    uid: prometheus
    url: <prometheus-url>
    jsonData:
        httpMethod: GET
    version: 1
  - name: Tempo
    type: tempo
    uid: tempo
    url: <tempo-url>
    jsonData:
      httpMethod: GET
      serviceMap:
        datasourceUid: 'prometheus'
    version: 1
```
