mirror of
https://github.com/grafana/grafana.git
synced 2025-01-26 08:16:59 -06:00
examples(plugin.json): add includes info
This commit is contained in:
parent
138c738db9
commit
0ec747630d
@ -34,6 +34,11 @@
|
|||||||
"updated": "2015-02-10"
|
"updated": "2015-02-10"
|
||||||
},
|
},
|
||||||
|
|
||||||
|
"includes": [
|
||||||
|
{"type": "panel", "name": "Nginx Panel"},
|
||||||
|
{"type": "datasource", "name": "Nginx Datasource"}
|
||||||
|
],
|
||||||
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"grafanaVersion": "3.x.x",
|
"grafanaVersion": "3.x.x",
|
||||||
"plugins": [
|
"plugins": [
|
||||||
|
12
examples/nginx-app/src/datasource/datasource.js
Normal file
12
examples/nginx-app/src/datasource/datasource.js
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
export default class NginxDatasource {
|
||||||
|
|
||||||
|
constructor() {}
|
||||||
|
|
||||||
|
query(options) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
testDatasource() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
5
examples/nginx-app/src/datasource/module.js
Normal file
5
examples/nginx-app/src/datasource/module.js
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
import {Datasource} from './datasource';
|
||||||
|
|
||||||
|
export {
|
||||||
|
Datasource
|
||||||
|
};
|
5
examples/nginx-app/src/datasource/plugin.json
Normal file
5
examples/nginx-app/src/datasource/plugin.json
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"type": "datasource",
|
||||||
|
"name": "Nginx Datasource",
|
||||||
|
"id": "nginx-datasource"
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user