22 #ifndef PROM_HISTOGRAM_INCLUDED 23 #define PROM_HISTOGRAM_INCLUDED 61 size_t label_key_count,
const char **label_keys);
81 #endif // PROM_HISTOGRAM_INCLUDED int prom_histogram_destroy(prom_histogram_t *self)
Destroy a prom_histogram_t*.
struct prom_metric prom_metric_t
A prometheus metric.
Definition: prom_metric.h:34
Definition: prom_histogram_buckets.h:27
prom_metric_t prom_histogram_t
A prometheus histogram.
Definition: prom_histogram.h:36
prom_histogram_t * prom_histogram_new(const char *name, const char *help, prom_histogram_buckets_t *buckets, size_t label_key_count, const char **label_keys)
Construct a prom_histogram_t*.
Functions for retrieving metric samples from metrics given an ordered set of labels.
int prom_histogram_observe(prom_histogram_t *self, double value, const char **label_values)
Observe the prom_histogram_t given the value and labells.
https://prometheus.io/docs/concepts/metric_types/#histogram