Fix configs.
This commit is contained in:
@@ -23,11 +23,6 @@ function (angular, _, kbn) {
|
|||||||
|
|
||||||
// No datapoints limit by default
|
// No datapoints limit by default
|
||||||
this.limitmetrics = datasource.limitmetrics || 0;
|
this.limitmetrics = datasource.limitmetrics || 0;
|
||||||
|
|
||||||
this.partials = datasource.partials || 'plugins/datasource/zabbix/partials';
|
|
||||||
this.editorSrc = this.partials + '/query.editor.html';
|
|
||||||
this.annotationEditorSrc = this.partials + '/annotations.editor.html';
|
|
||||||
this.supportAnnotations = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -2,35 +2,24 @@
|
|||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
<h5>Zabbix Details</h5>
|
<h5>Zabbix API details</h5>
|
||||||
|
|
||||||
<div class="tight-form">
|
<div class="tight-form">
|
||||||
<ul class="tight-form-list">
|
<ul class="tight-form-list">
|
||||||
<li class="tight-form-item" style="width: 80px">
|
<li class="tight-form-item" style="width: 80px">
|
||||||
Database
|
User
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<input type="text" class="tight-form-input input-large" ng-model='current.database' placeholder="" required></input>
|
<input type="text" class="tight-form-input input-large" ng-model='current.user' placeholder=""></input>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
<li class="tight-form-item">
|
||||||
<div class="clearfix"></div>
|
Password
|
||||||
</div>
|
</li>
|
||||||
<div class="tight-form last">
|
<li>
|
||||||
<ul class="tight-form-list">
|
<input type="password" class="tight-form-input input-large" ng-model='current.password' placeholder=""></input>
|
||||||
<li class="tight-form-item" style="width: 80px">
|
</li>
|
||||||
User
|
</ul>
|
||||||
</li>
|
<div class="clearfix"></div>
|
||||||
<li>
|
|
||||||
<input type="text" class="tight-form-input input-large" ng-model='current.user' placeholder=""></input>
|
|
||||||
</li>
|
|
||||||
<li class="tight-form-item">
|
|
||||||
Password
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<input type="password" class="tight-form-input input-large" ng-model='current.password' placeholder="password"></input>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<div class="clearfix"></div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -16,5 +16,6 @@
|
|||||||
"username": "guest",
|
"username": "guest",
|
||||||
"password": "",
|
"password": "",
|
||||||
|
|
||||||
"metrics": true
|
"metrics": true,
|
||||||
|
"annotations": true
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user