Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

hystrix-dashboard

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hystrix-dashboard

A UI part of java hystrix dashboard for nodejs apps

latest
Source
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

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.

Keywords

hystrix

FAQs

Package last updated on 07 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts