Menu
Grafana Cloud

Application Observability service overview annotations

You can enable Application Observability to display annotations in the service overview duration panel.

Note

When you create annotations, they display only for the specific service that you designate.

Create annotations

You must define the following tags to view annotations correctly:

  • service.name=name-of-service: The service overview always adds the service name to the query
  • service.namespace=my-namespace: If the service has a namespace, you must also add this tag
  • deployment.environment=name-of-environment: If you selected an environment value in the service overview, you must also add the configured environment attribute. For example, deployment.environment=oteldemo01.

The following example shows how to create service view annotations:

http
POST /api/annotations HTTP/1.1
Accept: application/json
Content-Type: application/json
{
  "time":1507037197339,
  "timeEnd":0,
  "tags":["service.name=cartservice","service.namespace=oteldemo01"],
  "text":"Annotation Description"
}

Enable or disable service overview annotations

You can enable or disable annotations from the Settings tab on the Configuration page under the Service overview annotations section.