Skip to main content
Module

x/ts_prometheus/gauge.ts>Gauge

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

Constructors

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

Properties

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

Methods

dec(n?: number)
expose(): string | undefined
inc(n?: number)
labels(labels: Labels):
& Inc
& Dec
& Set
set(n: number)
value(): number | undefined

Static Methods

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