libprom
@VERSION@
C based libraries to expose metrics in Promtheus exposition format
|
Go to the documentation of this file.
18 #ifndef PROM_COUNTER_H
19 #define PROM_COUNTER_H
122 #endif // PROM_COUNTER_H
Functions for retrieving metric samples from metrics given an ordered set of labels.
int prom_counter_add(prom_counter_t *self, double r_value, const char **label_values)
Add the value to the give counter.
int prom_counter_inc(prom_counter_t *self, const char **label_values)
Increment the given counter by 1.
struct prom_metric prom_metric_t
A prometheus metric.
Definition: prom_metric.h:43
int prom_counter_reset(prom_counter_t *self, double r_value, const char **label_values)
Reset the given counter to the given value.
int prom_counter_destroy(prom_counter_t *self)
Destroys the given counter.
prom_counter_t * prom_counter_new(const char *name, const char *help, size_t label_key_count, const char **label_keys)
Construct a new metric of type counter (or short: counter).
prom_metric_t prom_counter_t
Prometheus metric: counter.
Definition: prom_counter.h:36