method IMetricsService.gauge
IMetricsService.gauge(
name: string,
options?: MetricOptions
): IGauge

Gets or creates a gauge.

Parameters

name: string

Metric name

optional
options: MetricOptions

Optional configuration

Return Type

The gauge instance

Usage

import { type IMetricsService } from "common/src/index.ts";