Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oroce/godot-elasticsearch
https://github.com/oroce/godot-elasticsearch
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/oroce/godot-elasticsearch
- Owner: oroce
- License: mit
- Created: 2014-01-24T11:07:00.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-01-24T15:05:12.000Z (almost 11 years ago)
- Last Synced: 2024-11-13T16:22:15.712Z (about 2 months ago)
- Language: JavaScript
- Size: 152 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
godot-elasticsearch
===================[ElasticSearch](http://www.elasticsearch.org/) producer for [godot](https://github.com/nodejitsu/godot/).
It uses [@jesusabdullah](http://github.com/jesusabdullah)'s [godot-producer](https://github.com/jesusabdullah/godot-producer).
How to use
-------------var godot = require( "godot" );
var ElasticSearchProducer = require( "godot-elasticsearch" );
godot.createClient(
type: "udp",
producers: [
new ElasticSearchProducer({
host: "very.production.app.server.com",
service: "elasticsearch/health",
ttl: 10*15,esHost: "localhost:9200" // ElasticSearch host
})
]
).connect( 1337, "localhost" );What type of events does `ElasticSearchProducer` emit?
-------------------------- `elasticsearch/health/healtcheck` (if cluster isnt available this event contains critical state, otherwise it's ok)
- `elasticsearch/health/healtcheck/number_of_nodes`
- `elasticsearch/health/healtcheck/number_of_data_nodes`
- `elasticsearch/health/healtcheck/active_primary_shards`
- `elasticsearch/health/healtcheck/active_shards`
- `elasticsearch/health/healtcheck/relocating_shards`
- `elasticsearch/health/healtcheck/initializing_shards`
- `elasticsearch/health/healtcheck/data.unassigned_shards`Are you lazy? Don't you wanna roll your on client?
------------------------This module also installs `godot-elasticsearch` binary.
run `npm install -g godot-elasticsearch && godot-elasticsearch -h localhost:9200 -g udp://localhost:1337` and watch the events \o/
Debugging
------------------------Run your godot client or godot-elasticsearch command with one of the following DEBUG envs:
- `DEBUG="godot:elasticsearch*"`: shows debug output both of the godot producer and the cli
- `DEBUG="godot:elasticsearch:producer"`: shows debug output of the godot producer
- `DEBUG="godot:elasticsearch:cli"`: show debug output of the cliLICENSE
----------------------MIT