mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
* Explore: updates prom query field styles with flex-grow * Explore: adds prometheus explore query editor * Explore: updates step input width in prom explore query editor * Explore: updates prom explore query editor step field input placeholder to auto * Explore: updates prom explore query editor to include history * Explore: updates prom explore query editor, removes unused lodash import * Explore: updates step spacing in prom explore query editor * Explore: updates prom explore query editor - moves logic to query field * Explore: updates prom query field - adds step field with conditional rendering * Explore: updates promql cheat sheet with step description * Explore: updates prom cheat sheet step description * Explore: updates styles - adds query row break class * Explore: moves back step markup to PromExploreQueryEditor
20 lines
754 B
TypeScript
20 lines
754 B
TypeScript
import { DataSourcePlugin } from '@grafana/data';
|
|
import { PrometheusDatasource } from './datasource';
|
|
|
|
import { PromQueryEditor } from './components/PromQueryEditor';
|
|
import PromCheatSheet from './components/PromCheatSheet';
|
|
import { PromExploreQueryEditor } from './components/PromExploreQueryEditor';
|
|
|
|
import { ConfigEditor } from './configuration/ConfigEditor';
|
|
|
|
class PrometheusAnnotationsQueryCtrl {
|
|
static templateUrl = 'partials/annotations.editor.html';
|
|
}
|
|
|
|
export const plugin = new DataSourcePlugin(PrometheusDatasource)
|
|
.setQueryEditor(PromQueryEditor)
|
|
.setConfigEditor(ConfigEditor)
|
|
.setExploreMetricsQueryField(PromExploreQueryEditor)
|
|
.setAnnotationQueryCtrl(PrometheusAnnotationsQueryCtrl)
|
|
.setExploreStartPage(PromCheatSheet);
|