method IMetricsApi.register
IMetricsApi.register(
name: string,
config: MetricConfig
): void

Registers a metric.

Parameters

name: string

Metric name (Prometheus naming conventions)

Metric type, help text, labels

Return Type

void

Usage

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