22 #ifndef PROM_METRIC_SAMPLE_H    23 #define PROM_METRIC_SAMPLE_H    25 struct prom_metric_sample;
    60 #endif  // PROM_METRIC_SAMPLE_H struct prom_metric_sample prom_metric_sample_t
Contains the specific metric and value given the name and label set Reference: https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels. 
Definition: prom_metric_sample.h:30
int prom_metric_sample_add(prom_metric_sample_t *self, double r_value)
Add the r_value to the sample. 
int prom_metric_sample_sub(prom_metric_sample_t *self, double r_value)
Subtract the r_value from the sample. 
int prom_metric_sample_set(prom_metric_sample_t *self, double r_value)
Set the r_value of the sample.