libprom
@VERSION@
C based libraries to expose metrics in Promtheus exposition format
|
Functions for retrieving metric samples from metrics given an ordered set of labels.
int prom_gauge_sub(prom_gauge_t *self, double r_value, const char **label_values)
Subtract the value to the given gauge.
int prom_gauge_dec(prom_gauge_t *self, const char **label_values)
Decrement the given gauge by 1.
struct prom_metric prom_metric_t
A prometheus metric.
Definition: prom_metric.h:43
int prom_gauge_add(prom_gauge_t *self, double r_value, const char **label_values)
Add the given value to the given gauge.
int prom_gauge_destroy(prom_gauge_t *self)
Destroys the given gauge.
int prom_gauge_inc(prom_gauge_t *self, const char **label_values)
Increment the given gauge by 1.
prom_metric_t prom_gauge_t
Prometheus metric: gauge.
Definition: prom_gauge.h:36
prom_gauge_t * prom_gauge_new(const char *name, const char *help, size_t label_key_count, const char **label_keys)
Construct a new metric of type gauge (or short: gauge).
int prom_gauge_set(prom_gauge_t *self, double r_value, const char **label_values)
Set the given gauge to the given value.