libprom
1.2.0
C based libraries to expose metrics in Promtheus exposition format
|
Go to the documentation of this file.
27 #ifndef PROM_HISTOGRAM_BUCKETS_H
28 #define PROM_HISTOGRAM_BUCKETS_H
86 #endif // PROM_HISTOGRAM_BUCKETS_H
const double * upper_bound
count ascending upper limits
Definition: prom_histogram_buckets.h:32
const char ** key
count keys used to lookup samples.
Definition: prom_histogram_buckets.h:33
phb_t * phb_exponential(double start, double factor, size_t count)
Construct an exponentially sized prom histogram bucket.
phb_t * phb_linear(double start, double width, size_t count)
Construct a linearly sized prom histogram bucket.
Definition: prom_histogram_buckets.h:30
phb_t * prom_histogram_default_buckets
default histogram buckets: .005, .01, .025, .05, .1, .25, .5, 1, 2.5, 5, 10
int phb_destroy(phb_t *self)
Destroy the given prom histogram bucket.
phb_t * phb_new(size_t count, double bucket,...)
Construct a new histogram bucket with the given values.
size_t phb_count(phb_t *self)
Get the number of valus in the given bucket.
int count
Number of buckets.
Definition: prom_histogram_buckets.h:31