@loopback/metrics
Version:
An extension exposes metrics for Prometheus with LoopBack 4
17 lines (14 loc) • 541 B
text/typescript
// Copyright IBM Corp. and LoopBack contributors 2019. All Rights Reserved.
// Node module: @loopback/metrics
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT
import {BindingKey, CoreBindings} from '@loopback/core';
import {MetricsComponent} from './metrics.component';
/**
* Binding keys used by this component.
*/
export namespace MetricsBindings {
export const COMPONENT = BindingKey.create<MetricsComponent>(
`${CoreBindings.COMPONENTS}.MetricsComponent`,
);
}