mirror of https://github.com/grafana/grafana
parent
bd6e2d6ca4
commit
4a69de1f30
@ -0,0 +1,13 @@ |
||||
Example app is available at https://github.com/raintank/grafana-plugin-example |
||||
|
||||
* Clone plugin repo git@github.com:raintank/grafana-plugin-example.git |
||||
|
||||
* Modify grafana.ini (or custom.ini if your developing Grafana locally) |
||||
|
||||
```ini |
||||
[plugin.external-test] |
||||
path = /<the_path_were_you_cloned_it>/grafana-plugin-example |
||||
``` |
||||
|
||||
|
||||
|
||||
@ -1,3 +0,0 @@ |
||||
Example app is available at https://github.com/raintank/grafana-plugin-example |
||||
|
||||
To use, download the example app from github and run it (requires python Flask). Then rename the "_plugin.json" file in this director to "plugin.json" and restart Grafana. |
||||
@ -1,42 +0,0 @@ |
||||
{ |
||||
"pluginType": "externalPlugin", |
||||
"settings": { |
||||
"routes": [ |
||||
{ |
||||
"path": "/example/static/*", |
||||
"method": "*", |
||||
"req_signed_in": false, |
||||
"req_grafana_admin": false, |
||||
"req_role": "Admin", |
||||
"url": "http://localhost:5000/static" |
||||
}, |
||||
{ |
||||
"path": "/example/api/*", |
||||
"method": "*", |
||||
"req_signed_in": true, |
||||
"req_grafana_admin": false, |
||||
"req_role": "Admin", |
||||
"url": "http://localhost:5000/api" |
||||
} |
||||
], |
||||
"css": [ |
||||
{ |
||||
"href": "/example/static/css/example.css" |
||||
} |
||||
], |
||||
"js": [ |
||||
{ |
||||
"src": "/example/static/js/app.js" |
||||
} |
||||
], |
||||
"menu_items": [ |
||||
{ |
||||
"text": "Example Plugin", |
||||
"icon": "fa fa-fw fa-smile-o", |
||||
"href": "/example/servers", |
||||
"adminOnly": false, |
||||
} |
||||
] |
||||
} |
||||
|
||||
} |
||||
@ -0,0 +1,8 @@ |
||||
{ |
||||
"pluginType": "panel", |
||||
|
||||
"name": "Dashboard list", |
||||
"type": "dashlist", |
||||
|
||||
"module": "app/plugins/panels/dashlist/module" |
||||
} |
||||
@ -0,0 +1,8 @@ |
||||
{ |
||||
"pluginType": "panel", |
||||
|
||||
"name": "Graph", |
||||
"type": "graph", |
||||
|
||||
"module": "app/plugins/panels/graph/module" |
||||
} |
||||
@ -0,0 +1,8 @@ |
||||
{ |
||||
"pluginType": "panel", |
||||
|
||||
"name": "Singlestat", |
||||
"type": "singlestat", |
||||
|
||||
"module": "app/plugins/panels/singlestat/module" |
||||
} |
||||
@ -0,0 +1,8 @@ |
||||
{ |
||||
"pluginType": "panel", |
||||
|
||||
"name": "Table", |
||||
"type": "table", |
||||
|
||||
"module": "app/plugins/panels/table/module" |
||||
} |
||||
@ -1,4 +1,4 @@ |
||||
///<reference path="../../headers/common.d.ts" />
|
||||
///<reference path="../../../headers/common.d.ts" />
|
||||
|
||||
import _ = require('lodash'); |
||||
import kbn = require('app/core/utils/kbn'); |
||||
@ -1,4 +1,4 @@ |
||||
///<reference path="../../headers/common.d.ts" />
|
||||
///<reference path="../../../headers/common.d.ts" />
|
||||
|
||||
import moment = require('moment'); |
||||
import _ = require('lodash'); |
||||
@ -0,0 +1,8 @@ |
||||
{ |
||||
"pluginType": "panel", |
||||
|
||||
"name": "Text", |
||||
"type": "text", |
||||
|
||||
"module": "app/plugins/panels/text/module" |
||||
} |
||||
Loading…
Reference in new issue