24 #ifndef PROM_HISTOGRAM_INCLUDED 25 #define PROM_HISTOGRAM_INCLUDED 85 #endif // PROM_HISTOGRAM_INCLUDED int prom_histogram_destroy(prom_histogram_t *self)
Destroy the given histogram.
struct prom_metric prom_metric_t
A prometheus metric.
Definition: prom_metric.h:43
prom_histogram_t * prom_histogram_new(const char *name, const char *help, phb_t *buckets, size_t label_key_count, const char **label_keys)
Construct a new metric of type histogram (or short: histogram)
Definition: prom_histogram_buckets.h:30
prom_metric_t prom_histogram_t
Prometheus metric: histogram.
Definition: prom_histogram.h:38
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 given value of the given histogram with the given labels.
https://prometheus.io/docs/concepts/metric_types/#histogram