Comments (8)
I recommend to use plugin for grafana 2 from develop branch
'Cause the plugin for grafana 1.9 will not be developed in future as I know
from grafana-zabbix.
Very strange. Please, show first 15-20 lines from your datasource.js
file. Especially this line:
module.factory('ZabbixAPIDatasource', function($q, $http, templateSrv) {
from grafana-zabbix.
I made git clone from grafana-1.9 branch, and I didn't modify it:
'angular',
'lodash',
'kbn',
'./queryCtrl',
],
function (angular, _, kbn) {
'use strict';
var module = angular.module('grafana.services');
module.factory('ZabbixAPIDatasource', function($q, backendSrv, templateSrv) {
function ZabbixAPIDatasource(datasource) {
this.name = datasource.name;
this.url = datasource.url;
// TODO: fix passing username and password from config.html
this.username = datasource.meta.username;
this.password = datasource.meta.password;
// For testing
this.ds = datasource;
}
from grafana-zabbix.
Maybe I put plugin in wrong place?
This is how my grafana directory structure looks like:
.
├── app
│ ├── app.fea68443.js
│ ├── app.js
│ ├── components
│ │ └── require.config.js
│ ├── controllers
│ │ └── console-ctrl.js
│ ├── dashboards
│ │ ├── default.json
│ │ ├── empty.json
│ │ ├── scripted_async.js
│ │ ├── scripted_gen_and_save.js
│ │ ├── scripted.js
│ │ ├── scripted_templated.js
│ │ └── template_vars.json
│ ├── features
│ │ └── panellinkeditor
│ │ └── module.html
│ ├── panels
│ │ ├── graph
│ │ │ ├── axisEditor.html
│ │ │ ├── legend.popover.html
│ │ │ ├── module.html
│ │ │ └── styleEditor.html
│ │ ├── singlestat
│ │ │ ├── editor.html
│ │ │ └── module.html
│ │ ├── text
│ │ │ ├── editor.html
│ │ │ └── module.html
│ │ └── timepicker
│ │ ├── custom.html
│ │ ├── editor.html
│ │ ├── module.html
│ │ └── refreshctrl.html
│ └── partials
│ ├── annotations_editor.html
│ ├── confirm_modal.html
│ ├── console.html
│ ├── dashboard.html
│ ├── dashboard_topnav.html
│ ├── dasheditor.html
│ ├── dashLoaderShare.html
│ ├── edit_json.html
│ ├── elasticsearch
│ │ └── annotation_editor.html
│ ├── graphite
│ │ ├── annotation_editor.html
│ │ └── editor.html
│ ├── help_modal.html
│ ├── import.html
│ ├── influxdb
│ │ ├── annotation_editor.html
│ │ └── editor.html
│ ├── inspector.html
│ ├── loadmetrics.html
│ ├── metrics.html
│ ├── modal.html
│ ├── opentsdb
│ │ └── editor.html
│ ├── paneleditor.html
│ ├── panelgeneral.html
│ ├── playlist.html
│ ├── roweditor.html
│ ├── search.html
│ ├── share-panel.html
│ ├── submenu.html
│ ├── templating_editor.html
│ └── unsaved-changes.html
├── build.txt
├── config.js
├── config.js.bak
├── config.js.graphite
├── config.js.influxdb
├── config.js.orig
├── config-replace.js
├── config-replace.js.bak
├── config.sample.js
├── css
│ ├── bootstrap.dark.min.css
│ ├── bootstrap.light.min.css
│ ├── bootstrap-responsive.min.css
│ ├── grafana.dark.min.87051ba1.css
│ ├── grafana.dark.min.css
│ ├── grafana.light.min.8bae5632.css
│ └── grafana.light.min.css
├── font
│ ├── FontAwesome.otf
│ ├── fontawesome-webfont.eot
│ ├── fontawesome-webfont.svg
│ ├── fontawesome-webfont.ttf
│ └── fontawesome-webfont.woff
├── img
│ ├── checkbox.png
│ ├── checkbox_white.png
│ ├── check_radio_sheet.png
│ ├── cubes.png
│ ├── fav16.png
│ ├── fav32.png
│ ├── fav_dark_16.png
│ ├── fav_dark_32.png
│ ├── glyphicons-halflings.png
│ ├── glyphicons-halflings-white.png
│ ├── kibana.png
│ ├── light.png
│ ├── load_big.gif
│ ├── load.gif
│ ├── logo_transparent_200x.png
│ └── small.png
├── index.html
├── LICENSE.md
├── NOTICE.md
├── plugins
│ ├── custom.panel.example
│ │ ├── editor.html
│ │ ├── module.html
│ │ └── module.js
│ ├── datasource
│ │ └── zabbix
│ │ ├── datasource.js
│ │ ├── partials
│ │ │ ├── annotations.editor.html
│ │ │ ├── config.html
│ │ │ └── query.editor.html
│ │ ├── plugin.json
│ │ └── queryCtrl.js
│ └── datasource.example.js
├── README.md
├── test
│ ├── karma.conf.js
│ ├── mocks
│ │ └── dashboard-mock.js
│ ├── specs
│ │ ├── dashboardSrv-specs.js
│ │ ├── dashboardViewStateSrv-specs.js
│ │ ├── gfunc-specs.js
│ │ ├── graph-ctrl-specs.js
│ │ ├── graphiteDatasource-specs.js
│ │ ├── graphiteTargetCtrl-specs.js
│ │ ├── graph-specs.js
│ │ ├── graph-tooltip-specs.js
│ │ ├── helpers.js
│ │ ├── influxdb-datasource-specs.js
│ │ ├── influxQueryBuilder-specs.js
│ │ ├── influxSeries-specs.js
│ │ ├── kbn-format-specs.js
│ │ ├── lexer-specs.js
│ │ ├── parser-specs.js
│ │ ├── row-ctrl-specs.js
│ │ ├── seriesOverridesCtrl-specs.js
│ │ ├── sharePanelCtrl-specs.js
│ │ ├── templateSrv-specs.js
│ │ ├── templateValuesSrv-specs.js
│ │ ├── timeSeries-specs.js
│ │ └── timeSrv-specs.js
│ ├── test-main.js
│ └── tests.html
└── vendor
├── angular
│ └── angular-mocks.js
├── css
│ ├── animate.min.css
│ ├── font-awesome.min.css
│ ├── normalize.min.css
│ ├── spectrum.css
│ └── timepicker.css
├── jquery
│ ├── jquery.flot.fillbetween.js
│ └── jquery.flot.pie.js
├── license.json
└── require
├── css-build.js
├── require.js
└── tmpl.js
32 directories, 142 files
from grafana-zabbix.
Looks like you use master
branch. This code from it.
from grafana-zabbix.
Oops. You are right. Thanks!
from grafana-zabbix.
Use release 1.0.1 instead clone repo to prevent mistakes.
https://github.com/alexanderzobnin/grafana-zabbix/releases/tag/v1.0.1
from grafana-zabbix.
@blacked do you have any reasons to use grafana 1.9.1 instead 2.0? There are many new usefull features in this release and in grafana-zabbix for grafana 2 (templates? multiple graphs from one target and more).
from grafana-zabbix.
Related Issues (20)
- Feature Request - Check box to only include enabled hosts when setting up variables.
- Grafana cloud refuses to reset Zabbix API token HOT 7
- Zabbix plugin tcp timeout after Grafana upgrade to latest version HOT 3
- I cannot delete a function (for example, transform -1) by clicking the x HOT 2
- How to see hostname + metric in legend? HOT 2
- From version 4.3.0 onwards (Zabbix 3.2.11) - "Invalid params. Login name or password is incorrect." - HOT 7
- "Zabbix Problems Panel" display problems HOT 5
- "skip TLS certificate validation" is not working
- Grafana Variable doesn't work at filter of hosts
- Problems Issue with Zabbix 7.0 HOT 2
- An error occured within the plugin HOT 19
- replaceAlias function get ignored when Dashboard Transforms like "Join by label" are applied on the dashboard HOT 1
- plugin version 4.4.6 query ignoring selected application
- Support prometheus for querying data
- replaceAlias function get ignored when Dashboard Transforms like "Join by label" are applied on the dashboard HOT 1
- Plugin is failing to render in new Scenes architecture HOT 1
- Grafana after acknowladge HOT 2
- Cannot connect to zabbix on the same server
- Method not allowed
- Compatibility Matrix table
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grafana-zabbix.