---
title: "Application Observability required metrics and labels | Grafana Cloud documentation"
description: "The recommended metrics and labels for Application Observability."
---

# Application Observability required metrics and labels

Application Observability uses metrics and labels to present data. This guide provides an overview of how Application Observability functions.

Metric names can differ depending on whether span/service metrics are generated using OTEL connectors on the Alloy/OTEL collector or if these metrics are generated using Tempo. Label names are consistent between the two options.

Application Observability uses the following common labels:

- `job`: This label identifies services. `job` is the concatenation of `$service.namespace/$service.name` or just equal to `service.name` when the `service.namespace` attribute is not present.
- `deployment_environment`: This label allows you to filter by environment, for example: “prod”, “dev”, and “ops." You can change the exact name of this label via configuration. We strongly recommend that you use this label on all metrics. It is required for the baselines feature to work.

## Span metrics and service graph metrics

Application Observability generates metrics from traces or through Beyla. Regardless of origin, these metrics drive all of the main views in the user interface.

> Note
> 
> You can use any additional labels not mentioned here for filtering or grouping metrics in the user interface.

Expand table

| Metric name                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | Mandatory | Description                                                                                                                                                                                                                                                                                     | Mandatory labels                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | Recommended labels                                                                                                                                                                                                                                                                                                                                                                                              |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `target_info` (Alloy, OTEL Collector)<br /><br /><br /><br />`traces_target_info` (Tempo, Beyla)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | yes       | This metric stores resource attributes. Service inventory and service metadata are derived from it.                                                                                                                                                                                             | `job`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | `telemetry_sdk_*`: Determines service technology and SDK metadata<br /><br /><br /><br />`deployment_environment`: Allows filter by environment<br /><br /><br /><br />`k8s_*`: Determines kubernetes metadata<br /><br /><br /><br />`emb_*`: Determines embrace metadata<br /><br /><br /><br />`gf_feo11y_*`: Determines frontend o11y metadata<br /><br /><br /><br />`cloud_*` - Determines cloud metadata |
| `traces_spanmetrics_latency_count`, `traces_spanmetrics_latency_sum`, `traces_spanmetrics_latency_bucket` (classic histogram for Tempo, Beyla)<br /><br /><br /><br />OR<br /><br /><br /><br />`traces_spanmetrics_latency` (native histogram for Tempo, Beyla)<br /><br /><br /><br />OR<br /><br /><br /><br />`traces_span_metrics_duration_seconds_count`, `traces_span_metrics_duration_seconds_sum`, `traces_span_metrics_duration_seconds_bucket` (classic histogram for OTEL Collector &gt;= v0.109, Grafana Alloy &gt;= v1.5.0)<br /><br /><br /><br />OR<br /><br /><br /><br />`traces_span_metrics_duration_seconds` (native histogram for OTEL Collector &gt;= v0.109, Grafana Alloy &gt;= v1.5.0)<br /><br /><br /><br />OR<br /><br /><br /><br />`duration_seconds_count`, `duration_seconds_sum`, `duration_seconds_bucket` (classic histogram for OTEL Collector v0.94 to v0.108, Grafana Alloy v1.0 to v1.4.3, Grafana Agent &gt;= v0.40)<br /><br /><br /><br />OR<br /><br /><br /><br />`duration_seconds` (native histogram for OTEL Collector v0.94 to v0.108, Grafana Alloy v1.0 to v1.4.3, Grafana Agent &gt;= v0.40) | yes       | These metrics power RED metric panels and baselines. They are necessary for Application Observability.                                                                                                                                                                                          | `job`<br /><br /><br /><br />`span_kind`: Distinguishes incoming from outgoing requests<br /><br /><br /><br />`status_code`: Determines if a request was successful or not; used for errors panel<br /><br /><br /><br />`le`: Defines the upper bound of a histogram bucket                                                                                                                                                                                                                                                                  | `deployment_environment`: Allows filter by environment<br /><br /><br /><br /><br /><br />`span_name`: Defines operation name, for example, HTTP endpoint or RPC function. Per operation breakdowns won’t work without this label.                                                                                                                                                                              |
| `traces_service_graph_request_total`, `traces_service_graph_request_failed_total`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | no        | These metrics indicate service graph request totals. Service maps and inbound/outbound panels won’t work without them. Application Observability also uses them to derive uninstrumented services. You can disable service graph generation to reduce the number of metric series.              | `client`<br /><br /><br /><br />`client_service_namespace`<br /><br /><br /><br />`server`<br /><br /><br /><br />`server_service_namespace`<br /><br /><br /><br />Service graph metrics don’t have `job` labels. Application Observability parses the `job` label from other metrics to derive service namespace and name, which are then used to match client name and namespace, or server name and namespace respectively when querying service graph metrics.                                                                            | `client_deployment_environment`: Allows filter by environment<br /><br /><br /><br />`server_deployment_environment`: Allows filter by environment<br /><br /><br /><br />`connection_type`: Determines if a service or a database is instrumented or not                                                                                                                                                       |
| `traces_service_graph_request_client_seconds_bucket`, `traces_service_graph_request_client_seconds_count`, `traces_service_graph_request_client_seconds_sum`, `traces_service_graph_request_server_seconds_bucket`, `traces_service_graph_request_server_seconds_count`, `traces_service_graph_request_server_seconds_sum` (classic histogram)<br /><br /><br /><br />OR<br /><br /><br /><br />`traces_service_graph_request_client_seconds`, `traces_service_graph_request_server_seconds` (native histogram)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | no        | These metrics determine service graph request latency histograms. Service maps and inbound/outbound panels won’t work without them. Application Observability also uses them to derive uninstrumented services. You can disable service graph generation to reduce the number of metric series. | `client`<br /><br /><br /><br />`client_service_namespace`<br /><br /><br /><br />`server`<br /><br /><br /><br />`server_service_namespace`<br /><br /><br /><br />`le`: Defines the upper bound of a histogram bucket<br /><br /><br /><br />Service graph metrics don’t have `job` labels. Application Observability parses the `job` label from other metrics to derive service namespace and name, which are then used to match client name and namespace, or server name and namespace respectively when querying service graph metrics. | `client_deployment_environment`: Allows filter by environment<br /><br /><br /><br />`server_deployment_environment`: Allows filter by environment<br /><br /><br /><br />`connection_type`: Determines if a service or a database is instrumented or not                                                                                                                                                       |

## Host info metrics

Application Observability requires the host info metric to calculate the number of host hours for billing. It should produce a series per host that is sending Application Observability telemetry. You will lose access to Application Observability if no host info metric series are present for the last 30 days.

Expand table

| Metric name        | Mandatory | Required labels                                                         |
|--------------------|-----------|-------------------------------------------------------------------------|
| `traces_host_info` | yes       | `grafana_host_id`: unique identifier of a host, for example, a k8s node |

## Runtime metrics

Application Observability uses runtime metrics to drive runtime dashboards for JVM, .NET, and Golang.

> Note
> 
> You can use any additional labels not mentioned here for filtering metrics in the user interface.

Expand table

| Metric name                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | Runtime | Required labels | Recommended labels                                               |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------|-----------------|------------------------------------------------------------------|
| `jvm_class_count`<br /><br /><br /><br />`process_runtime_jvm_classes_current_loaded`<br /><br /><br /><br />`jvm_classes_loaded`<br /><br /><br /><br />`jvm_memory_used`<br /><br /><br /><br />`jvm_memory_used_bytes`<br /><br /><br /><br />`jvm_memory_limit`<br /><br /><br /><br />`jvm_memory_limit_bytes`<br /><br /><br /><br />`process_runtime_jvm_memory_usage`<br /><br /><br /><br />`process_runtime_jvm_memory_usage_bytes`<br /><br /><br /><br />`process_runtime_jvm_memory_limit`<br /><br /><br /><br />`process_runtime_jvm_memory_limit_bytes`<br /><br /><br /><br />`jvm_memory_max`<br /><br /><br /><br />`jvm_memory_max_bytes`<br /><br /><br /><br />`jvm_gc_duration_sum`<br /><br /><br /><br />`jvm_gc_duration_seconds_sum`<br /><br /><br /><br />`process_runtime_jvm_gc_duration_sum`<br /><br /><br /><br />`process_runtime_jvm_gc_duration_seconds_sum`<br /><br /><br /><br />`jvm_gc_pause_sum`<br /><br /><br /><br />`jvm_gc_pause_seconds_sum`<br /><br /><br /><br />`jvm_gc_pause_milliseconds_sum`<br /><br /><br /><br />`jvm_cpu_recent_utilization`<br /><br /><br /><br />`jvm_cpu_recent_utilization_ratio`<br /><br /><br /><br />`process_runtime_jvm_system_cpu_utilization`<br /><br /><br /><br />`process_runtime_jvm_system_cpu_utilization_ratio`<br /><br /><br /><br />`system_cpu_usage`<br /><br /><br /><br />`jvm_thread_count`<br /><br /><br /><br />`process_runtime_jvm_threads_count`<br /><br /><br /><br />`jvm_threads_live` | JVM     | `job`           | `instance`: Correlates CPU/memory usage to a particular instance |
| `process_runtime_go_mem_live_objects`<br /><br /><br /><br />`process_runtime_go_mem_heap_sys`<br /><br /><br /><br />`process_runtime_go_mem_heap_alloc`<br /><br /><br /><br />`process_runtime_go_mem_heap_alloc_bytes`<br /><br /><br /><br />`process_runtime_go_mem_heap_idle`<br /><br /><br /><br />`process_runtime_go_mem_heap_idle_bytes`<br /><br /><br /><br />`process_runtime_go_mem_heap_inuse`<br /><br /><br /><br />`process_runtime_go_mem_heap_inuse_bytes`<br /><br /><br /><br />`process_runtime_go_mem_heap_released`<br /><br /><br /><br />`process_runtime_go_mem_heap_released_bytes`<br /><br /><br /><br />`process_runtime_go_mem_lookups`<br /><br /><br /><br />`process_runtime_go_mem_lookups_total`<br /><br /><br /><br />`process_runtime_go_mem_heap_objects`<br /><br /><br /><br />`process_runtime_go_goroutines`<br /><br /><br /><br />`process_runtime_go_gc_count`<br /><br /><br /><br />`process_runtime_go_gc_count_total`<br /><br /><br /><br />`process_runtime_go_cgo_calls`                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | Golang  | `job`           | `instance`: Correlates CPU/memory usage to a particular instance |
| `process_runtime_dotnet_gc_objects_size`<br /><br /><br /><br />`process_runtime_dotnet_gc_objects_size_bytes`<br /><br /><br /><br />`process_threads`<br /><br /><br /><br />`process_thread_count`<br /><br /><br /><br />`process_cpu_time`<br /><br /><br /><br />`process_cpu_time_seconds_total`<br /><br /><br /><br />`process_memory_usage`<br /><br /><br /><br />`process_memory_usage_bytes`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | .NET    | `job`           | `instance`: Correlates CPU/memory usage to a particular instance |
