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/knowledge-graph/get-started/manage-datasets/application/application-metrics.md, or by sending Accept: text/markdown to https://grafana.com/docs/grafana-cloud/knowledge-graph/get-started/manage-datasets/application/application-metrics/. 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.
Configure Application Observability metrics
You can manage how Application Observability metrics are generated for the knowledge graph.
Metrics generation
Enable or disable metrics generation for the default provisioned Traces data source for the stack.
Beyla
Beyla can generate its own span metrics and service graph metrics. When used together with Grafana Cloud metrics generation, this can lead to duplicate series, which can display erroneous data in Application Observability. You can choose one of the following options to set it up properly:
- Grafana Cloud Tempo generates span metrics from all traces, except those containing the following resource attribute. This option excludes traces that have the
span.metrics.skip=trueresource attribute. - Grafana Cloud Tempo disregards the deduplication resource attribute when generating metrics from spans. Selecting this option can cause duplicate metrics to be generated.
This configuration exists so that you can use Beyla metrics generation simultaneously with Grafana Cloud metrics generation.
Before you begin
Ensure the following:
- You are familiar with your metrics coming into Grafana Cloud, including the source environment and clusters
- You have Grafana Cloud Admin permissions
Enable metrics generation
- Sign into Grafana Cloud and click Observability > Configuration.
- Click Connect knowledge graph.
- Click Enable metric generation.
- Click Activate.
Configure metrics duplication options
- Sign into Grafana Cloud and click Observability > Configuration.
- Click Connect knowledge graph.
- Click Duplication Options.
- Select how you want the knowledge graph to manage span metrics.
- Click OK.
Troubleshoot missing or incomplete span and service graph metrics
Span metrics power the Service Overview dashboards, and service graph metrics power the service relationship and dependency maps. The Instrumentation Quality report flags a service when these metrics are missing or incomplete. Use the message shown in the report to identify which case applies:
- No span or service graph metrics were found. Metrics generation is not producing data for this service. Enable it as described in Enable metrics generation, and confirm the service is sending traces. If you use Beyla, confirm it is configured to generate the metrics.
- Metrics are present but the environment label is empty. The metrics exist but the deployment environment is not set, so the knowledge graph cannot map the service to an environment. Set the
deployment.environment.nameresource attribute in your instrumentation. - Metrics are present but the namespace label is empty. The metrics exist but the service namespace is not set. Set the
service.namespaceresource attribute, and, for Kubernetes workloads, thek8s.namespace.nameattribute. See Add missing Kubernetes attributes.
Was this page helpful?
Related resources from Grafana Labs


