Skip to main content
Module

x/ts_prometheus/histogram.ts>Histogram

A prometheus client in Typescript for Deno
Latest
class Histogram
implements Observe
extends Metric
import { Histogram } from "https://deno.land/x/ts_prometheus@v0.3.0/histogram.ts";

Constructors

new
private
Histogram(
collector: Collector,
labels: string[],
buckets: number[],
)

Properties

private
buckets: number[]
private
collector: Collector
private
count: number
private
sum: number
private
values: number[]
readonly
description: string

Methods

expose(): string | undefined
observe(n: number)

Static Methods

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