mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Tempo: Add cheat sheet to query editor (#33272)
This commit is contained in:
parent
7499efeef8
commit
340942267c
20
public/app/plugins/datasource/tempo/CheatSheet.tsx
Normal file
20
public/app/plugins/datasource/tempo/CheatSheet.tsx
Normal file
@ -0,0 +1,20 @@
|
||||
import React from 'react';
|
||||
|
||||
export default function CheatSheet() {
|
||||
return (
|
||||
<div>
|
||||
<h2 id="tempo-cheat-sheet">Tempo Cheat Sheet</h2>
|
||||
<p>
|
||||
Tempo is a trace id lookup store. Enter a trace id in the above field and hit “Run Query” to retrieve your
|
||||
trace. Tempo is generally paired with other datasources such as Loki or Prometheus to find traces.
|
||||
</p>
|
||||
<p>
|
||||
Here are some{' '}
|
||||
<a href="https://grafana.com/docs/tempo/latest/guides/instrumentation/" target="blank">
|
||||
instrumentation examples
|
||||
</a>{' '}
|
||||
to get you started with trace discovery through logs and metrics (exemplars).
|
||||
</p>
|
||||
</div>
|
||||
);
|
||||
}
|
@ -1,8 +1,10 @@
|
||||
import { DataSourcePlugin } from '@grafana/data';
|
||||
import CheatSheet from './CheatSheet';
|
||||
import { ConfigEditor } from './ConfigEditor';
|
||||
import { TempoDatasource } from './datasource';
|
||||
import { TempoQueryField } from './QueryField';
|
||||
import { ConfigEditor } from './ConfigEditor';
|
||||
|
||||
export const plugin = new DataSourcePlugin(TempoDatasource)
|
||||
.setConfigEditor(ConfigEditor)
|
||||
.setQueryEditorHelp(CheatSheet)
|
||||
.setExploreQueryField(TempoQueryField);
|
||||
|
Loading…
Reference in New Issue
Block a user