libprom
1.2.0
C based libraries to expose metrics in Promtheus exposition format
|
Functions for interacting with histogram metric samples directly. More...
Go to the source code of this file.
Typedefs | |
typedef struct pms_histogram | pms_histogram_t |
A histogram metric sample. | |
Functions | |
int | pms_histogram_observe (pms_histogram_t *self, double value) |
Find the bucket for the given value in the given prom sample metric histogram and increment the sample assigned to it by 1. More... | |
Functions for interacting with histogram metric samples directly.
int pms_histogram_observe | ( | pms_histogram_t * | self, |
double | value | ||
) |
Find the bucket for the given value in the given prom sample metric histogram and increment the sample assigned to it by 1.
Furthermore update its sum and count sample, if found and appropriate.
self | Where to lockup the bucket and sample. |
value | The value to find. |
0
otherwise.