Skip to content

dimichgh/hystrix-dashboard

Repository files navigation

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 /hystrix.stream and a proxy /proxy.stream

codecov Build Status NPM Downloads Known Vulnerabilities

Install

npm install 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('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 /hystrix.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.

About

A UI part of java hystrix dashboard for nodejs apps

Resources

Stars

Watchers

Forks

Packages

No packages published