Prometheus Metrics for Opossum Circuit Breaker
This module provides Prometheus metrics for
opossum circuit breakers. To use
it with your circuit breakers, just pass them in to the PrometheusMetrics
constructor.
Example:
const circuitBreaker = require('opossum');
const PrometheusMetrics = require('opossum-prometheus');
const c1 = circuitBreaker(someFunction);
const c2 = circuitBreaker(someOtherfunction);
const prometheus = new PrometheusMetrics([c1, c2]);
console.log(prometheus.metrics);
This module would typically be used in an application that can provide
an endpoint for the Prometheus server to monitor.