155 #endif // PROM_GAUGE_H prom_gauge_t * prom_gauge_new(const char *name, const char *help, size_t label_key_count, const char **label_keys)
Constructs a prom_gauge_t*.
struct prom_metric prom_metric_t
A prometheus metric.
Definition: prom_metric.h:34
int prom_gauge_sub(prom_gauge_t *self, double r_value, const char **label_values)
Subtract the value to the prom_gauge.
int prom_gauge_dec(prom_gauge_t *self, const char **label_values)
Decrement the prom_gauge_t* by 1.
prom_metric_t prom_gauge_t
A prometheus gauge.
Definition: prom_gauge.h:35
int prom_gauge_add(prom_gauge_t *self, double r_value, const char **label_values)
Add the value to the prom_gauge_t*.
int prom_gauge_inc(prom_gauge_t *self, const char **label_values)
Increment the prom_gauge_t* by 1.
int prom_gauge_set(prom_gauge_t *self, double r_value, const char **label_values)
Set the value for the prom_gauge_t*.
int prom_gauge_destroy(prom_gauge_t *self)
Destroys a prom_gauge_t*.
Functions for retrieving metric samples from metrics given an ordered set of labels.