Giter Site home page Giter Site logo

timroes / elasticsearch_status Goto Github PK

View Code? Open in Web Editor NEW
18.0 18.0 27.0 6 KB

A sample Kibana application plugin for my Kibana tutorial series.

Home Page: https://www.timroes.de/2016/02/21/writing-kibana-plugins-custom-applications/

JavaScript 88.70% CSS 1.44% HTML 9.86%

elasticsearch_status's Introduction

Welcome to my GitHub profile 👋

🌍 ❬ www.timroes.de
👥 ❬ LinkedInMastodonYouTube
👨‍💻 ❬ Working at Airbyte

Tools and Techstack

🖥️ ❬ Arch Linux · Awesome WM · zsh ❭
🛠️ ❬ TypeScript · React · Gatsby · Netlify ❭
📝 ❬ Visual Studio Code · GitHub · Todoist · Notion ❭
🎨 ❬ iPad Pro · Concepts · Affinity Designer ❭

elasticsearch_status's People

Contributors

timroes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

elasticsearch_status's Issues

Kibana5.0.0-snapshot is not showing indexes list

Hi I am trying to create an customized app in kibana version 5.0.0-Snapshot and my Elasticsearch version is 2.1.1

When i click on the icon Indeces i am getting blank page and in console i got the following

Error: [$injector:unpr] Unknown provider: NotifierProvider <- Notifier <- globalState <- timefilter
http://errors.angularjs.org/1.4.7/$injector/unpr?p0=NotifierProvider%20%3C-%20Notifier%20%3C-%20globalState%20%3C-%20timefilter
minErr/<@https://localhost:5601/gzw/bundles/commons.bundle.js?v=8467:27349:13
createInjector/providerCache.$injector<@https://localhost:5601/gzw/bundles/commons.bundle.js?v=8467:31570:20
getService@https://localhost:5601/gzw/bundles/commons.bundle.js?v=8467:31718:40
createInjector/instanceCache.$injector<@https://localhost:5601/gzw/bundles/commons.bundle.js?v=8467:31575:29
getService@https://localhost:5601/gzw/bundles/commons.bundle.js?v=8467:31718:40
invoke@https://localhost:5601/gzw/bundles/commons.bundle.js?v=8467:31750:1
instantiate@https://localhost:5601/gzw/bundles/commons.bundle.js?v=8467:63319:25
get@https://localhost:5601/gzw/bundles/commons.bundle.js?v=8467:63337:23
Private@https://localhost:5601/gzw/bundles/commons.bundle.js?v=8467:63357:17
[1674]/**WEBPACK_AMD_DEFINE_RESULT**</<@https://localhost:5601/gzw/bundles/commons.bundle.js?v=8467:62727:18
invoke@https://localhost:5601/gzw/bundles/commons.bundle.js?v=8467:31759:15
instantiate@https://localhost:5601/gzw/bundles/commons.bundle.js?v=8467:31767:28
service/<@https://localhost:5601/gzw/bundles/commons.bundle.js?v=8467:31627:15
invoke@https://localhost:5601/gzw/bundles/commons.bundle.js?v=8467:31759:15
enforcedReturnValue@https://localhost:5601/gzw/bundles/commons.bundle.js?v=8467:31611:21
invoke@https://localhost:5601/gzw/bundles/commons.bundle.js?v=8467:31759:15
createInjector/instanceCache.$injector<@https://localhost:5601/gzw/bundles/commons.bundle.js?v=8467:31576:21
getService@https://localhost:5601/gzw/bundles/commons.bundle.js?v=8467:31718:40
invoke@https://localhost:5601/gzw/bundles/commons.bundle.js?v=8467:31750:1
instantiate@https://localhost:5601/gzw/bundles/commons.bundle.js?v=8467:31767:28
service/<@https://localhost:5601/gzw/bundles/commons.bundle.js?v=8467:31627:15
invoke@https://localhost:5601/gzw/bundles/commons.bundle.js?v=8467:31759:15
enforcedReturnValue@https://localhost:5601/gzw/bundles/commons.bundle.js?v=8467:31611:21
invoke@https://localhost:5601/gzw/bundles/commons.bundle.js?v=8467:31759:15
createInjector/instanceCache.$injector<@https://localhost:5601/gzw/bundles/commons.bundle.js?v=8467:31576:21
getService@https://localhost:5601/gzw/bundles/commons.bundle.js?v=8467:31718:40
invoke@https://localhost:5601/gzw/bundles/commons.bundle.js?v=8467:31750:1
invokeEach/<@https://localhost:5601/gzw/bundles/commons.bundle.js?v=8467:61179:19
[1681]/**WEBPACK_AMD_DEFINE_RESULT**</</Promise.try@https://localhost:5601/gzw/bundles/commons.bundle.js?v=8467:63459:20
[1681]/**WEBPACK_AMD_DEFINE_RESULT**</</Promise.map/<@https://localhost:5601/gzw/bundles/commons.bundle.js?v=8467:63428:17
[1681]/**WEBPACK_AMD_DEFINE_RESULT**</</Promise.map@https://localhost:5601/gzw/bundles/commons.bundle.js?v=8467:63427:27
invokeEach@https://localhost:5601/gzw/bundles/commons.bundle.js?v=8467:61177:1
doWork@https://localhost:5601/gzw/bundles/commons.bundle.js?v=8467:61217:15
invoke@https://localhost:5601/gzw/bundles/commons.bundle.js?v=8467:31759:15
**prep**@https://localhost:5601/gzw/bundles/commons.bundle.js?v=8467:60794:17
invoke@https://localhost:5601/gzw/bundles/commons.bundle.js?v=8467:31759:15
commitRoute/</<@https://localhost:5601/gzw/bundles/commons.bundle.js?v=8467:57323:45
forEach@https://localhost:5601/gzw/bundles/commons.bundle.js?v=8467:27631:12
commitRoute/<@https://localhost:5601/gzw/bundles/commons.bundle.js?v=8467:57321:16
processQueue@https://localhost:5601/gzw/bundles/commons.bundle.js?v=8467:42026:29
scheduleProcessQueue/<@https://localhost:5601/gzw/bundles/commons.bundle.js?v=8467:42042:28
$RootScopeProvider/this.$get</Scope.prototype.$eval@https://localhost:5601/gzw/bundles/commons.bundle.js?v=8467:43270:17
$RootScopeProvider/this.$get</Scope.prototype.$digest@https://localhost:5601/gzw/bundles/commons.bundle.js?v=8467:43081:16
$RootScopeProvider/this.$get</Scope.prototype.$apply@https://localhost:5601/gzw/bundles/commons.bundle.js?v=8467:43378:14
bootstrapApply@https://localhost:5601/gzw/bundles/commons.bundle.js?v=8467:28941:10
invoke@https://localhost:5601/gzw/bundles/commons.bundle.js?v=8467:31759:15
bootstrap/doBootstrap@https://localhost:5601/gzw/bundles/commons.bundle.js?v=8467:28939:1
bootstrap@https://localhost:5601/gzw/bundles/commons.bundle.js?v=8467:28959:1
[1646]/chrome.bootstrap@https://localhost:5601/gzw/bundles/commons.bundle.js?v=8467:59922:4
[0]@https://localhost:5601/gzw/bundles/elasticsearch_status.bundle.js?v=8467:33:2
**webpack_require**@https://localhost:5601/gzw/bundles/commons.bundle.js?v=8467:51:12
webpackJsonpCallback@https://localhost:5601/gzw/bundles/commons.bundle.js?v=8467:22:20
@https://localhost:5601/gzw/bundles/elasticsearch_status.bundle.js?v=8467:1:1
"

and by bundle.js GET method's response is

webpackJsonp([3],{

/**_/ 0:
/**_/ function(module, exports, **webpack_require**) {

/**
 * Test entry file
 *
 * This is programatically created and updated, do not modify
 *
 * context: {"env":"development","urlBasePath":"/afl","sourceMaps":true,"kbnVersion":"5.0.0-snapshot","buildNum":8467}
 * includes code from:
 *  - [email protected]
 *  - [email protected]
 *  - [email protected]
 *  - [email protected]
 *  - [email protected]
 *  - [email protected]
 *  - [email protected]
 *  - [email protected]
 *  - [email protected]
 *  - [email protected]
 *  - [email protected]
 *  - [email protected]
 *
 */

'use strict';

__webpack_require__(1646);
__webpack_require__(2352);
__webpack_require__(1646).bootstrap();
/* xoxo */

/***/ },

/_/ 2352:
/
_/ function(module, exports, webpack_require) {

'use strict';

var _interopRequireDefault = __webpack_require__(281)['default'];

var _uiChrome = __webpack_require__(1646);

var _uiChrome2 = _interopRequireDefault(_uiChrome);

var _uiModules = __webpack_require__(1654);

var _uiModules2 = _interopRequireDefault(_uiModules);

var _uiRoutes = __webpack_require__(1656);

var _uiRoutes2 = _interopRequireDefault(_uiRoutes);

__webpack_require__(1930);

__webpack_require__(2353);

var _templatesIndexHtml = __webpack_require__(2354);

var _templatesIndexHtml2 = _interopRequireDefault(_templatesIndexHtml);

var _templatesDetailHtml = __webpack_require__(2355);

var _templatesDetailHtml2 = _interopRequireDefault(_templatesDetailHtml);

_uiRoutes2['default'].enable();
_uiRoutes2['default'].when('/', {
  template: _templatesIndexHtml2['default'],
  controller: 'elasticsearchStatusController',
  controllerAs: 'ctrl'
}).when('/index/:name', {
  template: _templatesDetailHtml2['default'],
  controller: 'elasticsearchDetailController',
  controllerAs: 'ctrl'
});

_uiModules2['default'].get('app/elasticsearch_status').controller('elasticsearchStatusController', function ($http) {
  var _this = this;

  $http.get('../api/elasticsearch_status/indices').then(function (response) {
    _this.indices = response.data;
  });
}).controller('elasticsearchDetailController', function ($routeParams, $http) {
  var _this2 = this;

  this.index = $routeParams.name;

  $http.get('../api/elasticsearch_status/index/' + this.index).then(function (response) {
    _this2.status = response.data;
  });
});

/***/ },

/_/ 2353:
/
_/ function(module, exports) {

// removed by extract-text-webpack-plugin

/***/ },

/_/ 2354:
/
_/ function(module, exports) {

module.exports = "<div class=\"container\" ng-controller=\"HelloWorld\">\n  <div class=\"row\">\n    <div class=\"col-12-sm\">\n      <h1>Elasticsearch Status</h1>\n      <ul class=\"indexList\">\n        <li ng-repeat=\"index in ctrl.indices\">\n          <a href=\"#/index/{{index}}\">{{ index }}</a>\n        </li>\n      </ul>\n    </div>\n  </div>\n</div>\n"

/***/ },

/_/ 2355:
/
_/ function(module, exports) {

module.exports = "<div class=\"container\">\n  <div class=\"row\">\n    <div class=\"col-12-sm\">\n\t\t\t<a href=\"#/\">Index list</a>\n      <h1>Index: {{ ctrl.index }}</h1>\n\t\t\t<pre>{{ ctrl.status | json }}</pre>\n    </div>\n  </div>\n</div>\n"

/***/ }

});
//# sourceMappingURL=elasticsearch_status.bundle.js.map


Please tell me what iam missing

error installing from src zip

I tried installing from src zip on kibana 4.4.1:

bin/kibana plugin -i elasticsearch_status -u https://github.com/timroes/elasticsearch_status/archive/master.zip

but it throws error:

    ERROR in ./installedPlugins/elasticsearch_status/public/app.js
    Module not found: Error: Cannot resolve 'file' or 'directory' /Users/leo/progetti/elasticsearch/kibana-4.4.1-darwin-x64/src/ui/public/autoload/styles in /Users/leo/progetti/elasticsearch/kibana-4.4.1-darwin-x64/installedPlugins/elasticsearch_status/public
     @ ./installedPlugins/elasticsearch_status/public/app.js 13:0-29

Thanks in advance and thanks for the awesome tutorials!!!

Fatal Error: Uncaught TypeError: Cannot read property 'get' of undefined (https://localhost:5601/vaz/bundles/elasticsearch_status.bundle.js?v=8467:257)

Hi, I am running Elasticsearch 6.0.0-alpha1 and Kibana 6.0.0-alpha1. I was trying to add this "elasticsearch_status" into my kibana plugin. On the kibana webpage, I could see the new "indices" icon/tab on the left, but once I clicked it, the page returns this message:

Fatal Error
Uncaught TypeError: Cannot read property 'get' of undefined (https://localhost:5601/vaz/bundles/elasticsearch_status.bundle.js?v=8467:257)

No clue what went wrong.

Thank you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.