diff --git a/src/datasource-zabbix/config.controller.js b/src/datasource-zabbix/config.controller.js index fcd77e9..fe9815f 100644 --- a/src/datasource-zabbix/config.controller.js +++ b/src/datasource-zabbix/config.controller.js @@ -2,6 +2,7 @@ import _ from 'lodash'; import { migrateDSConfig } from './migrations'; const SUPPORTED_SQL_DS = ['mysql', 'postgres', 'influxdb']; + const zabbixVersions = [ { name: '2.x', value: 2 }, { name: '3.x', value: 3 }, @@ -27,12 +28,12 @@ export class ZabbixDSConfigController { this.current.jsonData = migrateDSConfig(this.current.jsonData); _.defaults(this.current.jsonData, defaultConfig); - this.sqlDataSources = this.getSupportedSQLDataSources(); + this.dbDataSources = this.getSupportedDBDataSources(); this.zabbixVersions = _.cloneDeep(zabbixVersions); this.autoDetectZabbixVersion(); } - getSupportedSQLDataSources() { + getSupportedDBDataSources() { let datasources = this.datasourceSrv.getAll(); return _.filter(datasources, ds => { return _.includes(SUPPORTED_SQL_DS, ds.type); diff --git a/src/datasource-zabbix/partials/config.html b/src/datasource-zabbix/partials/config.html index 1530d2f..043c7c7 100644 --- a/src/datasource-zabbix/partials/config.html +++ b/src/datasource-zabbix/partials/config.html @@ -91,20 +91,20 @@ checked="ctrl.current.jsonData.dbConnectionEnable">
-
+
- SQL Data Source + Data Source - Select SQL Data Source for Zabbix database. - In order to use this feature you should create and - configure it first. Zabbix plugin uses this data source for querying history data directly from database. + Select Data Source for Zabbix history database. + In order to use this feature it should be created and + configured first. Zabbix plugin uses this data source for querying history data directly from the database. This way usually faster than pulling data from Zabbix API, especially on the wide time ranges, and reduces amount of data transfered.