mirror of
https://github.com/grafana/grafana.git
synced 2025-02-13 00:55:47 -06:00
* Update backend * Update frontend * Keep old plugin id * Update docs * Place doc images to a new directory * Legacy support for stackdriver-auto alignment * Consistent plugin name * Apply suggestions from code review Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com> Co-authored-by: Tobias Skarhed <1438972+tskarhed@users.noreply.github.com> * Update docs * Update public/app/plugins/datasource/cloud-monitoring/README.md Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com> * Add reference to the data source formerly being named Stackdriver * Update pkg/models/datasource.go Co-authored-by: Carl Bergquist <carl@grafana.com> * Fix gofmt Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com> Co-authored-by: Tobias Skarhed <1438972+tskarhed@users.noreply.github.com> Co-authored-by: Carl Bergquist <carl@grafana.com>
45 lines
1.6 KiB
TypeScript
45 lines
1.6 KiB
TypeScript
import React, { FC } from 'react';
|
|
|
|
export const AnnotationsHelp: FC = () => {
|
|
return (
|
|
<div className="gf-form grafana-info-box alert-info">
|
|
<div>
|
|
<h5>Annotation Query Format</h5>
|
|
<p>
|
|
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.{' '}
|
|
</p>
|
|
<p>
|
|
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:
|
|
</p>
|
|
<code>
|
|
{`${'{{metric.type}}'}`} has value: {`${'{{metric.value}}'}`}
|
|
</code>
|
|
<p>
|
|
Example Result: <code>monitoring.googleapis.com/uptime_check/http_status has this value: 502</code>
|
|
</p>
|
|
<label>Patterns:</label>
|
|
<p>
|
|
<code>{`${'{{metric.value}}'}`}</code> = value of the metric/point
|
|
</p>
|
|
<p>
|
|
<code>{`${'{{metric.type}}'}`}</code> = metric type e.g. compute.googleapis.com/instance/cpu/usage_time
|
|
</p>
|
|
<p>
|
|
<code>{`${'{{metric.name}}'}`}</code> = name part of metric e.g. instance/cpu/usage_time
|
|
</p>
|
|
<p>
|
|
<code>{`${'{{metric.service}}'}`}</code> = service part of metric e.g. compute
|
|
</p>
|
|
<p>
|
|
<code>{`${'{{metric.label.label_name}}'}`}</code> = Metric label metadata e.g. metric.label.instance_name
|
|
</p>
|
|
<p>
|
|
<code>{`${'{{resource.label.label_name}}'}`}</code> = Resource label metadata e.g. resource.label.zone
|
|
</p>
|
|
</div>
|
|
</div>
|
|
);
|
|
};
|