diff --git a/src/app/controllers/all.js b/src/app/controllers/all.js index 2626137657c..e95b99685be 100644 --- a/src/app/controllers/all.js +++ b/src/app/controllers/all.js @@ -10,4 +10,5 @@ define([ './graphiteImport', './influxTargetCtrl', './playlistCtrl', -], function () {}); \ No newline at end of file + './inspectCtrl', +], function () {}); diff --git a/src/app/directives/kibanaPanel.js b/src/app/directives/kibanaPanel.js index 0dc7621648a..2f271547d9e 100644 --- a/src/app/directives/kibanaPanel.js +++ b/src/app/directives/kibanaPanel.js @@ -16,9 +16,10 @@ function (angular, $, _) { var panelHeader = '
'+ '
' + - '
' + + '
' + '×' + - ' Oops! {{panel.error}}' + + ' Oops! {{panel.error}} ' + + '    (inspect)' + '
' + '
\n' + diff --git a/src/app/panels/graphite/module.js b/src/app/panels/graphite/module.js index e4ce6202ded..d46af4c3958 100644 --- a/src/app/panels/graphite/module.js +++ b/src/app/panels/graphite/module.js @@ -261,6 +261,7 @@ function (angular, app, $, _, kbn, moment, timeSeries) { return $scope.datasource.query(graphiteQuery) .then($scope.dataHandler) .then(null, function(err) { + $scope.inspector_info = { error: err }; $scope.panel.error = err.message || "Graphite HTTP Request Error"; }); }; diff --git a/src/app/partials/inspector.html b/src/app/partials/inspector.html index 0b2ebe622dd..8354f8e9558 100644 --- a/src/app/partials/inspector.html +++ b/src/app/partials/inspector.html @@ -1,14 +1,44 @@ - -