UNPKG

@loopback/metrics

Version:

An extension exposes metrics for Prometheus with LoopBack 4

14 lines (13 loc) 391 B
import { LifeCycleObserver } from '@loopback/core'; import { MetricsOptions } from '../types'; /** * An observer to set up periodical push of metrics to a push gateway */ export declare class MetricsPushObserver implements LifeCycleObserver { private options; private interval; private gateway; constructor(options?: MetricsOptions); start(): void; stop(): void; }