libprom
@VERSION@
C based libraries to expose metrics in Promtheus exposition format
|
Functions for interfacting with metric samples directly. More...
Go to the source code of this file.
Typedefs | |
typedef struct pms | pms_t |
Contains the specific metric and value given the name and label set. | |
Functions | |
int | pms_add (pms_t *self, double r_value) |
Add the given r_value to the given sample. | |
int | pms_sub (pms_t *self, double r_value) |
Subtract the given r_value from the given sample. | |
int | pms_set (pms_t *self, double r_value) |
Set the given r_value to the given ample. |
Functions for interfacting with metric samples directly.
typedef struct pms pms_t |
Contains the specific metric and value given the name and label set.
Add the given r_value to the given sample.
self | Where to add the given value. |
r_value | Value to add. Must be >= 0. |
0
otherwise. Set the given r_value to the given ample.
self | Where to set the given value. |
r_value | Value to set. |
0
otherwise.