extatus v0.2.5 Extatus.Metric.Gauge View Source

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

Link to this section Summary

Functions

Decrements the gauge 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 dec/3 after ddec/3

Decrements the gauge identified by name and values (keyword list with the correspondence between labels and values) by value

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

Increments the gauge 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 gauge identified by name and values (keyword list with the correspondence between labels and values) by value

Creates a gauge using the name of a metric

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

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

Sets the gauge identified by name and values (keyword list with the correspondence between labels and values) by value

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

Sets the gauge identified by name and values (keyword list with the correspondence between labels and values) to the current unix time

Sets the gauge identified by name and values (keyword list with the correspondence between labels and values) to the number of the currently executing function

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

Link to this section Functions

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

Decrements the gauge 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 dec/3 after ddec/3.

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

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

Creates a gauge 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 gauge 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 gauge identified by name and values (keyword list with the correspondence between labels and values) by value.

Creates a gauge using the name of a metric.

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

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

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

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

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

Sets the gauge 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 set_to_current_time(name, values) View Source (macro)

Sets the gauge identified by name and values (keyword list with the correspondence between labels and values) to the current unix time.

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

Sets the gauge identified by name and values (keyword list with the correspondence between labels and values) to the number of the currently executing function.

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

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