mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
provide ace editor for external datasource plugin (#9224)
This commit is contained in:
committed by
Torkel Ödegaard
parent
dd67c9d420
commit
b349b3ef55
@@ -0,0 +1,21 @@
|
||||
// jshint ignore: start
|
||||
// jscs: disable
|
||||
ace.define("ace/snippets/prometheus",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
// exports.snippetText = "# rate\n\
|
||||
// snippet r\n\
|
||||
// rate(${1:metric}[${2:range}])\n\
|
||||
// ";
|
||||
|
||||
exports.snippets = [
|
||||
{
|
||||
"content": "rate(${1:metric}[${2:range}])",
|
||||
"name": "rate()",
|
||||
"scope": "prometheus",
|
||||
"tabTrigger": "r"
|
||||
}
|
||||
];
|
||||
|
||||
exports.scope = "prometheus";
|
||||
});
|
||||
Reference in New Issue
Block a user