extatus v0.2.5 Extatus.Metric.Counter View Source

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

Link to this section Summary

Functions

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

Increments the counter identified by name and values (keyword list with the correspondence between labels and values) by value. If value happened to be a float even one time(!) you shouldn’t use inc/3 after dinc/3

Increments the counter identified by name and values (keyword list with the correspondence between labels and values) by value

Creates a counter using the name of a metric

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

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

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

Link to this section Functions

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

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

Increments the counter identified by name and values (keyword list with the correspondence between labels and values) by value. If value happened to be a float even one time(!) you shouldn’t use inc/3 after dinc/3.

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

Increments the counter identified by name and values (keyword list with the correspondence between labels and values) by value.

Creates a counter using the name of a metric.

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

Removes counter 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 counter 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 counter identified by name and values (keyword list with the correspondence between labels and values).