interface MetricConfig
Since 0.1.0

Configuration for registering a metric.

Properties

readonly
type: MetricType

The metric instrument kind.

readonly
help: string

Human-readable description (Prometheus HELP).

readonly
optional
labels: readonly string[]

Label names attachable to observations.

readonly
optional
buckets: readonly number[]

Histogram bucket boundaries (histogram metrics only).

Usage

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