method Gauge.prototype.inc
Gauge.prototype.inc(
value?: number,
labels?: Readonly<Record<string, string>>
): void

Increments the gauge.

Parameters

optional
value: number = 1

The value to add (default 1)

optional
labels: Readonly<Record<string, string>>

Label values keyed by label name

Return Type

void

Usage

import { Gauge } from "metrics-plugin/src/index.ts";