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/monitor-applications/application-observability/setup/resource-attributes.md, or by sending Accept: text/markdown to https://grafana.com/docs/grafana-cloud/monitor-applications/application-observability/setup/resource-attributes/. 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.
Application Observability resource attributes
Application Observability adds OpenTelemetry resource attributes to logs, spans, and metrics emitted by your application to enrich your data with contextual metadata.
These service resource attributes allow you to filter your metrics and traces effectively:
| Attribute | Description |
|---|---|
| service.namespace | An optional namespace for service.name |
| service.name | The application name |
| deployment.environment | Name of the deployment environment (staging or production) |
| service.instance.id | The unique instance, e.g. the pod name |
| service.version | The application version, to see if a new version has introduced a bug |
OpenTelemetry logs and metrics are stored in Loki and Prometheus respectively.
Both Loki and Prometheus use job and instance labels according the OpenTelemetry compatibility specification with Prometheus and OpenMetrics:
| Label | Filled with attribute (if it is found) |
|---|---|
| job | ${service.namespace}/${service.name} (if service.namespace is defined) or service.name |
| instance | service.instance.id |
Was this page helpful?
Related resources from Grafana Labs


