17 #ifndef PROM_COUNTER_H 18 #define PROM_COUNTER_H 103 #endif // PROM_COUNTER_H int prom_counter_add(prom_counter_t *self, double r_value, const char **label_values)
Add the value to the prom_counter_t*.
int prom_counter_inc(prom_counter_t *self, const char **label_values)
Increment the prom_counter_t by 1.
struct prom_metric prom_metric_t
A prometheus metric.
Definition: prom_metric.h:34
prom_metric_t prom_counter_t
A prometheus counter.
Definition: prom_counter.h:35
int prom_counter_destroy(prom_counter_t *self)
Destroys a prom_counter_t*.
Functions for retrieving metric samples from metrics given an ordered set of labels.
prom_counter_t * prom_counter_new(const char *name, const char *help, size_t label_key_count, const char **label_keys)
Construct a prom_counter_t*.