diff --git a/examples/nginx-app/plugin.json b/examples/nginx-app/plugin.json index 4e0c4a114fa..6d2cd82ba3b 100644 --- a/examples/nginx-app/plugin.json +++ b/examples/nginx-app/plugin.json @@ -34,6 +34,11 @@ "updated": "2015-02-10" }, + "includes": [ + {"type": "panel", "name": "Nginx Panel"}, + {"type": "datasource", "name": "Nginx Datasource"} + ], + "dependencies": { "grafanaVersion": "3.x.x", "plugins": [ diff --git a/examples/nginx-app/src/datasource/datasource.js b/examples/nginx-app/src/datasource/datasource.js new file mode 100644 index 00000000000..7f4ed363707 --- /dev/null +++ b/examples/nginx-app/src/datasource/datasource.js @@ -0,0 +1,12 @@ +export default class NginxDatasource { + + constructor() {} + + query(options) { + return []; + } + + testDatasource() { + return false; + } +} diff --git a/examples/nginx-app/src/datasource/module.js b/examples/nginx-app/src/datasource/module.js new file mode 100644 index 00000000000..a3473e59889 --- /dev/null +++ b/examples/nginx-app/src/datasource/module.js @@ -0,0 +1,5 @@ +import {Datasource} from './datasource'; + +export { + Datasource +}; \ No newline at end of file diff --git a/examples/nginx-app/src/datasource/plugin.json b/examples/nginx-app/src/datasource/plugin.json new file mode 100644 index 00000000000..ffce9492418 --- /dev/null +++ b/examples/nginx-app/src/datasource/plugin.json @@ -0,0 +1,5 @@ +{ + "type": "datasource", + "name": "Nginx Datasource", + "id": "nginx-datasource" +}