method MetricsService.prototype.gauge
MetricsService.prototype.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 { MetricsService } from "metrics-plugin/src/index.ts";