1.0.6 • Published 6 years ago

od-hystrix-dashboard v1.0.6

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

hystrix-dashboard

The module provides UI part from hystrix java dashboard that can be used as part nodejs application. For convenience, it also provides a publisher /odhystrix.stream and a proxy /odproxy.stream

Install

npm install od-hystrix-dashboard -S

Usage

One can expose it as part of your express app under /hystrix

const express = require('express');
const app = express();
const dashboard = require('od-hystrix-dashboard');

app.use(dashboard({
    idleTimeout: 4000,  // will emit "ping if no data comes within 4 seconds,
    interval: 2000      // interval to collect metrics
    proxy: true         // enable proxy for stream
}));

app.listen(8000); //  http://localhost:8000/hystrix

The metrics SSE stream can be served by /odhystrix.stream if this module is used within the same runtime where service metrics is produced.

The hystrix stream will will detect all hystrix modules loaded into require.cache and start observing them for any metrics available.

For a real example, you can look at how trooba-hystrix-handler uses it to expose trooba pipeline service metrics.

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago