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

Increments the counter.

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