Documentation for automated readers
A curated documentation index is available at: https://grafana.com/llms.txt
A complete documentation index is available at: https://grafana.com/llms-full.txt
These indexes can help with page discovery before fetching individual documents.
This page is also available in Markdown, which may be easier for automated readers and AI tools to parse than HTML. The Markdown version is available at https://grafana.com/docs/grafana-cloud/platform/knowledge-graph/use-cases/connect-services-across-products.md, or by sending Accept: text/markdown to https://grafana.com/docs/grafana-cloud/platform/knowledge-graph/use-cases/connect-services-across-products/. For broader documentation discovery, the curated index is available at https://grafana.com/llms.txt and the complete index is available at https://grafana.com/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 for the labels the knowledge graph uses to build relationships
Note
Activating the knowledge graph using Host Monitoring is currently in public preview. 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:
- Navigate to Observability > Entity catalog.
- Filter by entity type (Service, Node, Database, and so on) to check each product:
- Application Observability: Look for
Serviceentities with your service names. - Kubernetes Monitoring: Look for
KubeCluster,Node, andPodentities. - Database Observability: Look for
Databaseentities. - Host Monitoring: Look for
Nodeentities 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).
- Application Observability: Look for
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 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 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, which adds provider_name, provider_account, and provider_region labels.
For example, in a PostgreSQL on RDS setup:
# Copy instance to dsn before overwriting instance
- source_labels: [instance]
target_label: dsnRefer to your database setup guide (for example, Set up PostgreSQL on 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 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 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 and provides a stable machine identifier.
Verify linking
After you fix label mismatches:
- Wait a few minutes for the knowledge graph to reprocess metrics.
- Navigate to Observability > Entity graph.
- Search for the entity you fixed (for example,
Show Service checkout-api). - 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 or open a support ticket.
Next steps
- Review Label conventions for entity linking for the complete reference
- Explore service dependencies to visualize how linked entities connect
- Configure telemetry correlation for logs, traces, and profiles drill-downs
Was this page helpful?
Related resources from Grafana Labs


