extatus v0.2.5 Extatus.Metric.Summary View Source

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

Link to this section Summary

Functions

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

Observes the given amount for the summary 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 summary using the name of a metric

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

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

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

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

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

Link to this section Functions

Creates a summary 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 summary 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 summary using the name of a metric.

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

Observes the given amount for the summary 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 summary 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 summary 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 summary 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 summary identified by name and values (keyword list with the correspondence between labels and values).