Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pmuellr/es-hb-sim
elasticsearch heartbeat simulator
https://github.com/pmuellr/es-hb-sim
Last synced: about 1 month ago
JSON representation
elasticsearch heartbeat simulator
- Host: GitHub
- URL: https://github.com/pmuellr/es-hb-sim
- Owner: pmuellr
- License: mit
- Created: 2019-12-14T22:54:26.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-11T19:27:12.000Z (over 3 years ago)
- Last Synced: 2024-04-09T21:04:44.861Z (9 months ago)
- Language: JavaScript
- Size: 251 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
es-hb-sim - elasticsearch heartbeat simulattor
================================================================================`es-hb-sim` is an elasticsearch uptime/heartbeat simulator, indexing
documents directly into elasticsearch, allowing the up/down state to be
modified live via keypress.example
================================================================================```console
$ es-hb-sim 1 4 es-hb-sim https://elastic:changeme@localhost:9200
...
```usage
================================================================================```
es-hb-sim
```Every `` seconds, `` documents will be written to
`` at the elasticsearch cluster ``, each
document for a different monitor name.You can quit the program by pressing `q` or `control-c`. You can toggle the
up/down state of a particular instance by pressing the number key of it's
instance, eg, `1`, `2`, ... `0` (for 10).Every 30 seconds, the number of documents indexed is logged.
The documents written are pretty minimal - open an issue or PR if you want
more fields.```js
{
@timestamp: '2019-12-15T17:16:44.765Z',
event: {
dataset: 'uptime'
},
agent: {
type: 'heartbeat'
},
summary: {
up: 1 || 0,
down: 0 || 1
},
monitor: {
status: 'up' || 'down',
name: 'host-${instance}'
}
}
```install
================================================================================npm install -g pmuellr/es-hb-sim
license
================================================================================This package is licensed under the MIT license. See the [LICENSE.md][] file
for more information.contributing
================================================================================Awesome! We're happy that you want to contribute.
Please read the [CONTRIBUTING.md][] file for more information.
[LICENSE.md]: LICENSE.md
[CONTRIBUTING.md]: CONTRIBUTING.md
[CHANGELOG.md]: CHANGELOG.md