libprom
@VERSION@
C based libraries to expose metrics in Promtheus exposition format
|
Go to the documentation of this file.
24 #ifndef PROM_HISTOGRAM_INCLUDED
25 #define PROM_HISTOGRAM_INCLUDED
85 #endif // PROM_HISTOGRAM_INCLUDED
Functions for retrieving metric samples from metrics given an ordered set of labels.
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)
int prom_histogram_destroy(prom_histogram_t *self)
Destroy the given histogram.
https://prometheus.io/docs/concepts/metric_types/#histogram
Definition: prom_histogram_buckets.h:30
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.
prom_metric_t prom_histogram_t
Prometheus metric: histogram.
Definition: prom_histogram.h:38