mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
ace: example snippet for prometheus
This commit is contained in:
parent
d8d59fd8d4
commit
679ddc9696
@ -3,7 +3,19 @@
|
||||
ace.define("ace/snippets/prometheus",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "prometheus";
|
||||
// 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";
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user