Initial Zabbix app for Grafana 3.0.

This commit is contained in:
Alexander Zobnin
2016-03-28 23:28:04 +03:00
parent 5e30783859
commit 6f2db1c2fb
7 changed files with 92 additions and 9 deletions

View File

@@ -17,6 +17,8 @@ module.exports = function(grunt) {
'**/*',
'!datasource-zabbix/*.js',
'!panel-triggers/*.js',
'!components/*.js',
'!module.js',
'!**/*.scss'
],
dest: 'dist/'
@@ -49,6 +51,8 @@ module.exports = function(grunt) {
src: [
'datasource-zabbix/*.js',
'panel-triggers/*.js',
'components/*.js',
'module.js',
],
dest: 'dist/'
}]

View File

@@ -0,0 +1,13 @@
<h3 class="page-heading">Zabbix App Config</h3>
<div class="gf-form-group">
<div class="gf-form-inline">
<div class="gf-form">
<span class="gf-form-label">json Data property</span>
<input type="text" class="gf-form-input" ng-model="ctrl.appModel.jsonData.customText" >
</div>
<div class="gf-form">
<editor-checkbox text="Custom value" model="ctrl.appModel.jsonData.customCheckbox"></editor-checkbox>
</div>
</div>
</div>

4
src/components/config.js Normal file
View File

@@ -0,0 +1,4 @@
export class ZabbixAppConfigCtrl {
constructor() { }
}
ZabbixAppConfigCtrl.templateUrl = 'components/config.html';

View File

@@ -1,12 +1,19 @@
{
"type": "datasource",
"name": "Zabbix",
"name": "Zabbix Datasource",
"id": "zabbix",
"module": "plugins/zabbix/module",
"staticRoot": ".",
"metrics": true,
"annotations": true
"annotations": true,
"info": {
"author": {
"name": "Alexander Zobnin",
"url": "http://grafana-zabbix.org"
},
"logos": {
"small": "img/zabbix_logo.svg",
"large": "img/zabbix_logo.svg"
}
}
}

5
src/module.js Normal file
View File

@@ -0,0 +1,5 @@
import {ZabbixAppConfigCtrl} from './components/config';
export {
ZabbixAppConfigCtrl as ConfigCtrl
};

View File

@@ -1,8 +1,16 @@
{
"type": "panel",
"name": "Zabbix triggers",
"name": "Zabbix Triggers",
"id": "triggers",
"module": "plugins/triggers/module",
"staticRoot": "."
"info": {
"author": {
"name": "Alexander Zobnin",
"url": "http://grafana-zabbix.org"
},
"logos": {
"small": "img/zabbix_logo.svg",
"large": "img/zabbix_logo.svg"
}
}
}

42
src/plugin.json Normal file
View File

@@ -0,0 +1,42 @@
{
"type": "app",
"name": "Zabbix App",
"id": "zabbix-app",
"pages": [],
"css": {
"dark": "css/dark.css",
"light": "css/light.css"
},
"info": {
"description": "Zabbix bundle for Grafana",
"author": {
"name": "Alexander Zobnin",
"url": "http://grafana-zabbix.org"
},
"keywords": ["zabbix"],
"logos": {
"small": "/src/img/small_logo.png",
"large": "/src/img/large_logo.png"
},
"links": [
{"name": "Project site", "url": "https://github.com/alexanderzobnin/grafana-zabbix"},
{"name": "License & Terms", "url": "https://github.com/alexanderzobnin/grafana-zabbix/blob/master/LICENSE.md"}
],
"version": "1.0.0",
"updated": "2016-03-28"
},
"includes": [
{"type": "dashboard", "name": "Example Zabbix Dashboard", "path": "dashboards/example_zabbix_dashboard.json"},
{"type": "panel", "name": "Triggers Panel"},
{"type": "datasource", "name": "Zabbix Datasource"}
],
"dependencies": {
"grafanaVersion": "3.x.x",
"plugins": []
}
}