Prometheus Histogram methods

The Histogram class provides a metric for observing value distributions.

Table 1. Class methods
Method Description
prometheus.Histogram.create(
  name STRING,
  description STRING,
  [ buckets ],
  [ labels ] )
RETURNS prometheus.Histogram
Creates a new histogram metric with the specified name, description, buckets, and labels.
Table 2. Object methods
Method Description
observe( value FLOAT, [ labels ] )
Records a single observation (or measurement) for a histogram metric in the appropriate bucket for the specified label values.