Skip to main content
Module

x/ts_prometheus/mod.ts>Counter

A prometheus client in Typescript for Deno
Latest
class Counter
implements Inc, Value
extends Metric
import { Counter } from "https://deno.land/x/ts_prometheus@v0.3.0/mod.ts";

Constructors

new
private
Counter(collector: Collector, labels?: string[])

Properties

private
optional
_value: number
private
collector: Collector
readonly
description: string

Methods

expose(): string | undefined
inc(n?: number)
labels(labels: Labels): Inc & Value
value(): number | undefined

Static Methods

with(config: { name: string; help: string; labels?: string[]; registry?: Registry[]; }): Counter