extatus v0.2.5 Extatus.Metric.Histogram View Source

This module defines a wrapper over Prometheus.Metric.Histogram functions to be compatible with Extatus way of handling metrics.

Link to this section Summary

Functions

Creates a histogram using the name of a metric. If the counter exists, returns false

Observes the given amount for the histogram identified by name and values (keyword list with the correspondence between labels and values). If amount happened to be a float number even one time(!) you shoudn’t use observe/3 after dobserve/3

Creates a histogram using the name of a metric

Observes the given amount for the histogram identified by name and values (keyword list with the correspondence between labels and values)

Observes the histogram identified by name and values (keyword list with the correspondence between labels and values) to the amount of time spent executing function

Removes histogram series identified by name and values (keyword list with the correspondence between labels and values)

Resets the value of the histogram identified by name and values (keyword list with the correspondence between labels and values)

Returns the value of the histogram identified by name and values (keyword list with the correspondence between labels and values)

Link to this section Functions

Creates a histogram using the name of a metric. If the counter exists, returns false.

Link to this macro dobserve(name, values, amount \\ 1) View Source (macro)

Observes the given amount for the histogram identified by name and values (keyword list with the correspondence between labels and values). If amount happened to be a float number even one time(!) you shoudn’t use observe/3 after dobserve/3.

Creates a histogram using the name of a metric.

Link to this macro observe(name, values, amount \\ 1) View Source (macro)

Observes the given amount for the histogram identified by name and values (keyword list with the correspondence between labels and values).

Link to this macro observe_duration(name, values, function) View Source (macro)

Observes the histogram identified by name and values (keyword list with the correspondence between labels and values) to the amount of time spent executing function.

Link to this macro remove(name, values) View Source (macro)

Removes histogram series identified by name and values (keyword list with the correspondence between labels and values).

Link to this macro reset(name, values) View Source (macro)

Resets the value of the histogram identified by name and values (keyword list with the correspondence between labels and values).

Link to this macro value(name, values) View Source (macro)

Returns the value of the histogram identified by name and values (keyword list with the correspondence between labels and values).