A registered metric.
readonly
name: string
Metric name (Prometheus naming conventions).
readonly
type: MetricType
The metric instrument kind.
readonly
help: string
Human-readable description.
observe(value?: number,labels?: Readonly<Record<string, string>>): void
Records an observation.
For counters the value is the increment (default 1); for gauges the new value; for histograms and summaries the observed sample.