extatus v0.2.1 Extatus.Metric.Gauge

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

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)

Functions

ddec(name, values, value \\ 1) (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.

dec(name, values, value \\ 1) (macro)

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

declare(name) (macro)

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

dinc(name, values, value \\ 1) (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.

inc(name, values, value \\ 1) (macro)

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

new(name) (macro)

Creates a gauge using the name of a metric.

remove(name, values) (macro)

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

reset(name, values) (macro)

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

set(name, values, value) (macro)

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

set_duration(name, values, function) (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.

set_to_current_time(name, values) (macro)

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

track_inprogress(name, values, function) (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.

value(name, values) (macro)

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