文件操作 - module.ts
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/grafana/public/app/plugins/datasource/prometheus/module.ts
编辑文件内容
import { DataSourcePlugin } from '@grafana/data'; import { ANNOTATION_QUERY_STEP_DEFAULT, 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'; stepDefaultValuePlaceholder = ANNOTATION_QUERY_STEP_DEFAULT; } export const plugin = new DataSourcePlugin(PrometheusDatasource) .setQueryEditor(PromQueryEditor) .setConfigEditor(ConfigEditor) .setExploreMetricsQueryField(PromExploreQueryEditor) .setAnnotationQueryCtrl(PrometheusAnnotationsQueryCtrl) .setExploreStartPage(PromCheatSheet);
修改文件时间
将文件时间修改为当前时间的前一年
删除文件