Page Contents

Home > @loopback/metrics > MetricsOptions

MetricsOptions interface

Options for metrics component

Signature:

export interface MetricsOptions 

Properties

Property Modifiers Type Description
[defaultLabels?](/doc/en/lb4/apidocs.metrics.metricsoptions.defaultlabels.html) { \[labelName: string\]: string; } _(Optional)_
[defaultMetrics?](/doc/en/lb4/apidocs.metrics.metricsoptions.defaultmetrics.html) { disabled?: boolean; } & DefaultMetricsCollectorConfiguration _(Optional)_
[endpoint?](/doc/en/lb4/apidocs.metrics.metricsoptions.endpoint.html) { disabled?: boolean; basePath?: string; } _(Optional)_
[openApiSpec?](/doc/en/lb4/apidocs.metrics.metricsoptions.openapispec.html) boolean _(Optional)_
[pushGateway?](/doc/en/lb4/apidocs.metrics.metricsoptions.pushgateway.html) { disabled?: boolean; url: string; interval?: number; jobName?: string; groupingKey?: { \[key: string\]: string; }; replaceAll?: boolean; } _(Optional)_