---
lang: en
title: 'API docs: extension-metrics.metricscomponent._constructor_'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/strongloop/loopback-next/tree/master/extensions/metrics
permalink: /doc/en/lb4/apidocs.extension-metrics.metricscomponent._constructor_.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/extension-metrics](./extension-metrics.md) &gt; [MetricsComponent](./extension-metrics.metricscomponent.md) &gt; [(constructor)](./extension-metrics.metricscomponent._constructor_.md)

## MetricsComponent.(constructor)

Constructs a new instance of the `MetricsComponent` class

<b>Signature:</b>

```typescript
constructor(application: Application, options?: MetricsOptions);
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  application | [Application](./core.application.md) |  |
|  options | [MetricsOptions](./extension-metrics.metricsoptions.md) |  |


