---
title: "annotations | Grafana documentation"
description: "A reference for the JSON annotations schema used with Observability as Code."
---

> For a curated documentation index, see [llms.txt](/llms.txt). For the complete documentation index, see [llms-full.txt](/llms-full.txt).

# `annotations`

The configuration for the list of annotations that are associated with the dashboard.

JSON ![Copy code to clipboard](/media/images/icons/icon-copy-small-2.svg) Copy

```json
  "annotations": [
    {
      "kind": "AnnotationQuery",
      "spec": {
        "builtIn": false,
        "datasource": {
          "type": "",
          "uid": ""
        },
        "enable": false,
        "hide": false,
        "iconColor": "",
        "name": ""
      }
    }
  ],
```

`AnnotationsQueryKind` consists of:

- kind: “AnnotationQuery”
- spec: [AnnotationQuerySpec](#annotationqueryspec)

## `AnnotationQuerySpec`

Expand table

| Name       | Type/Definition                                                   |
|------------|-------------------------------------------------------------------|
| datasource | [`DataSourceRef`](#datasourceref)                                 |
| query      | [`DataQueryKind`](#dataquerykind)                                 |
| enable     | bool                                                              |
| hide       | bool                                                              |
| iconColor  | string                                                            |
| name       | string                                                            |
| builtIn    | bool. Default is `false`.                                         |
| filter     | [`AnnotationPanelFilter`](#annotationpanelfilter)                 |
| options    | `[string]`: A catch-all field for datasource-specific properties. |

### `DataSourceRef`

Expand table

| Name  | Usage                              |
|-------|------------------------------------|
| type? | string. The plugin type-id.        |
| uid?  | The specific data source instance. |

### `DataQueryKind`

Expand table

| Name | Type   |
|------|--------|
| kind | string |
| spec | string |

### `AnnotationPanelFilter`

Expand table

| Name     | Type/Definition                                                                |
|----------|--------------------------------------------------------------------------------|
| exclude? | bool. Should the specified panels be included or excluded. Default is `false`. |
| ids      | `[...uint8]`. Panel IDs that should be included or excluded.                   |
