call transformNull on all metrics

This commit is contained in:
Girish Ramakrishnan
2014-09-22 14:07:22 -07:00
parent 4f2b818786
commit 265ecbeffc
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -96,7 +96,7 @@ LoadPlugin df
#LoadPlugin entropy
#LoadPlugin ethstat
#LoadPlugin exec
#LoadPlugin filecount
LoadPlugin filecount
#LoadPlugin fscache
#LoadPlugin gmond
#LoadPlugin hddtemp
+4 -4
View File
@@ -11,11 +11,11 @@ var GraphsController = function ($scope, Client) {
'sumSeries(collectd.localhost.cpu-0.cpu-system,collectd.localhost.cpu-0.cpu-nice,collectd.localhost.cpu-0.cpu-user),' +
'sumSeries(collectd.localhost.cpu-0.cpu-idle,collectd.localhost.cpu-0.cpu-system,collectd.localhost.cpu-0.cpu-nice,collectd.localhost.cpu-0.cpu-user,collectd.localhost.cpu-0.cpu-wait)), 100), 0)';
var networkUsageTxTarget = 'collectd.localhost.interface-eth0.if_octets.tx';
var networkUsageRxTarget = 'collectd.localhost.interface-eth0.if_octets.rx';
var networkUsageTxTarget = 'transformNull(collectd.localhost.interface-eth0.if_octets.tx, 0)';
var networkUsageRxTarget = 'transformNull(collectd.localhost.interface-eth0.if_octets.rx, 0)';
var diskUsageAppsUsedTarget = 'collectd.localhost.df-loop0.df_complex-used';
var diskUsageDataUsedTarget = 'collectd.localhost.df-loop1.df_complex-used';
var diskUsageAppsUsedTarget = 'transformNull(collectd.localhost.df-loop0.df_complex-used, 0)';
var diskUsageDataUsedTarget = 'transformNull(collectd.localhost.df-loop1.df_complex-used, 0)';
$scope.updateGraphs = function () {
var activeTab = $scope.activeTab;