---
title: "Connect services across products | Grafana Cloud documentation"
description: "Troubleshoot and fix entity linking when multiple Grafana Cloud products send data but entities don't appear connected in the knowledge graph."
---

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

# Connect services across products

Use this workflow when you have multiple Grafana Cloud products sending data but entities from different products aren’t linked in the knowledge graph. This applies to any combination of Application Observability, Kubernetes Monitoring, Database Observability, Host Monitoring, and Cloud Provider Observability.

## When to use this workflow

Use this workflow when:

- A service appears in the entity catalog but isn’t connected to its database or Kubernetes workload
- An RDS instance exists as a cloud entity but isn’t linked to the service that calls it
- Two services that communicate don’t show a connection in the entity graph
- You recently added an additional product and want to verify that its entities connect to the rest

## Before you begin

- Confirm that each product is sending data and entities appear individually in the entity catalog
- Review [Label conventions for entity linking](https://grafana.com/docs/grafana-cloud/knowledge-graph/get-started/label-conventions/) for the labels the knowledge graph uses to build relationships

> Note
> 
> Activating the knowledge graph using Host Monitoring is currently in [public preview](https://grafana.com/docs/release-life-cycle/). Grafana Labs offers limited support, and breaking changes might occur prior to the feature being made generally available.

## Verify entity discovery

Before troubleshooting links, confirm that each product’s entities are being discovered:

1. Navigate to **Observability &gt; Entity catalog**.
2. Filter by entity type (Service, Node, Database, and so on) to check each product:
   
   - **Application Observability**: Look for `Service` entities with your service names.
   - **Kubernetes Monitoring**: Look for `KubeCluster`, `Node`, and `Pod` entities.
   - **Database Observability**: Look for `Database` entities.
   - **Host Monitoring**: Look for `Node` entities from Node Exporter or Windows Exporter. These may or may not be part of a Kubernetes cluster.
   - **Cloud Provider Observability**: Look for cloud-specific entities (`EC2Instance`, `RDSInstance`, and so on).

If entities from a product don’t appear at all, the issue is in that product’s data pipeline, not in cross-product linking. Refer to [Troubleshoot data issues](https://grafana.com/docs/grafana-cloud/knowledge-graph/get-started/troubleshooting/) for required metrics and labels.

## Check label alignment

Entity linking fails when the labels that two products use to identify the same resource don’t match. The most common mismatches are described in the following sections.

### Service to Kubernetes workload

**Symptom**: A service appears in the catalog but isn’t linked to its Kubernetes workload.

**Check**: Verify that your OpenTelemetry instrumentation includes Kubernetes resource attributes (`k8s.namespace.name`, `k8s.pod.name`, `k8s.cluster.name`) on `target_info` or `traces_target_info`. The knowledge graph uses these attributes to match the service to its owning workload, derived from `kube_pod_owner`.

**Fix**: Add the [Kubernetes Attributes Processor](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/processor/k8sattributesprocessor/README.md) to your Alloy or OTel Collector pipeline to enrich spans with Kubernetes metadata automatically.

### Service to service

**Symptom**: Two services that communicate don’t show a connection in the entity graph, or one side appears as an un-instrumented placeholder.

**Check**: Verify that both services have service graph metrics and the `server` value on the caller’s metrics matches the target service’s `service.name`. Also verify that the `client_deployment_environment_name` and `server_deployment_environment_name` on service graph metrics match the `deployment_environment_name` that each service reports in `target_info`.

**Fix**: Instrument both services with OpenTelemetry. Verify that each service’s `deployment_environment_name` in `target_info` matches the corresponding `client_deployment_environment_name` or `server_deployment_environment_name` on the service graph metrics. A mismatch prevents the knowledge graph from resolving the link.

### Service to Amazon RDS

**Symptom**: A service calls an RDS database, but the entity graph doesn’t show the connection.

**Check**: The knowledge graph matches `*.rds.amazonaws.com` hostname patterns in span metric and service graph metric labels (`client_server_address`, `server_address`, `server`, `net_peer_name`).

**Fix**: Ensure your application’s database connection string uses the standard RDS endpoint hostname (for example, `mydb.abc123.us-east-1.rds.amazonaws.com`). If your application connects through a proxy, CNAME, or IP address, the knowledge graph might not detect the RDS relationship from the hostname pattern.

> Note
> 
> Database Observability can link calling services to managed databases through service graph metrics, even without a cloud provider integration. Cloud provider integration adds the cloud resource context (account, region, and resource-specific metadata).

### Database to cloud provider

**Symptom**: A Database Observability entity exists but isn’t linked to its AWS RDS, Google Cloud SQL, or Azure Flexible Server entity.

**Check**: Verify that the `dsn` label is present on your database metrics.

**Fix**: Include the optional `dsn` relabeling step in your Database Observability exporter configuration. This step copies the exporter’s original `instance` value to a `dsn` label before the `instance` label is overwritten. The knowledge graph uses the hostname in `dsn` to match the database to its cloud provider entity. For cloud-hosted databases, also configure the [`cloud_provider` block](https://grafana.com/docs/grafana-cloud/send-data/alloy/reference/components/database_observability/database_observability.mysql/#cloud_provider), which adds `provider_name`, `provider_account`, and `provider_region` labels.

For example, in a PostgreSQL on RDS setup:

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

```yaml
# Copy instance to dsn before overwriting instance
- source_labels: [instance]
  target_label: dsn
```

Refer to your database setup guide (for example, [Set up PostgreSQL on RDS](https://grafana.com/docs/grafana-cloud/observe-and-act/monitor-infrastructure/database-observability/set-up/postgres/rds/)) for the complete relabeling configuration.

Also verify that `instance` is in `hostname:port` format (for example, `mydb.abc123.us-east-1.rds.amazonaws.com:5432`). Refer to the [Database Observability labels reference](https://grafana.com/docs/grafana-cloud/observe-and-act/monitor-infrastructure/database-observability/reference/labels/) for formatting requirements.

### Host to AWS EC2

**Symptom**: A host entity from Host Monitoring isn’t linked to its EC2 instance entity.

**Check**: The knowledge graph links hosts to EC2 instances using the `instance_id` label.

**Fix**: Use the Alloy `discovery.ec2` and `prometheus.enrich` components to enrich your host metrics with the EC2 instance ID. Refer to [Enrich and link hosts using metadata](https://grafana.com/docs/grafana-cloud/knowledge-graph/get-started/manage-datasets/host-monitoring/#enrich-and-link-hosts-using-metadata) for an example configuration.

### Missing `host_id` on earlier installations

**Symptom**: Host entities aren’t consistently identified, or you see duplicate host entities.

**Check**: Verify whether `host_id` is present on your host metrics.

**Fix**: Update your Alloy configuration snippet to include `host_id`. The Linux Server and Windows Server integrations include `host_id` automatically, but earlier installations need a configuration update. The `host_id` value comes from [OTel resource detection](https://opentelemetry.io/docs/specs/semconv/resource/host/) and provides a stable machine identifier.

## Verify linking

After you fix label mismatches:

1. Wait a few minutes for the knowledge graph to reprocess metrics.
2. Navigate to **Observability &gt; Entity graph**.
3. Search for the entity you fixed (for example, `Show Service checkout-api`).
4. Confirm that the expected relationships appear:
   
   - Services should show connections to other services, Kubernetes workloads, databases, and cloud resources.
   - Click an entity to see its connected entity types and counts.

If entities still don’t link after fixing labels, refer to [Troubleshoot data issues](https://grafana.com/docs/grafana-cloud/knowledge-graph/get-started/troubleshooting/) or open a support ticket.

## Next steps

- Review [Label conventions for entity linking](https://grafana.com/docs/grafana-cloud/knowledge-graph/get-started/label-conventions/) for the complete reference
- Explore [service dependencies](https://grafana.com/docs/grafana-cloud/knowledge-graph/use-cases/explore-dependencies/) to visualize how linked entities connect
- Configure [telemetry correlation](https://grafana.com/docs/grafana-cloud/knowledge-graph/configure/telemetry-correlation/) for logs, traces, and profiles drill-downs
