import React, { FC } from 'react'; export const AnnotationsHelp: FC = () => { return (
Annotation Query Format

An annotation is an event that is overlaid on top of graphs. Annotation rendering is expensive so it is important to limit the number of rows returned.{' '}

The Title and Text fields support templating and can use data returned from the query. For example, the Title field could have the following text:

{`${'{{metric.type}}'}`} has value: {`${'{{metric.value}}'}`}

Example Result: monitoring.googleapis.com/uptime_check/http_status has this value: 502

{`${'{{metric.value}}'}`} = value of the metric/point

{`${'{{metric.type}}'}`} = metric type e.g. compute.googleapis.com/instance/cpu/usage_time

{`${'{{metric.name}}'}`} = name part of metric e.g. instance/cpu/usage_time

{`${'{{metric.service}}'}`} = service part of metric e.g. compute

{`${'{{metric.label.label_name}}'}`} = Metric label metadata e.g. metric.label.instance_name

{`${'{{resource.label.label_name}}'}`} = Resource label metadata e.g. resource.label.zone

); };