7#ifndef ZEPHYR_INCLUDE_PROMETHEUS_SUMMARY_H_
8#define ZEPHYR_INCLUDE_PROMETHEUS_SUMMARY_H_
81#define PROMETHEUS_SUMMARY_DEFINE(_name, _detail) \
82 static STRUCT_SECTION_ITERABLE(prometheus_summary, _name) = {.base = (void *)(_detail), \
int prometheus_summary_observe(struct prometheus_summary *summary, double value)
Observes a value in a Prometheus summary metric.
Prometheus metric interface.
Type used to represent a Prometheus metric base.
Definition metric.h:48
Prometheus summary quantile definition.
Definition summary.h:29
double value
Value of the quantile.
Definition summary.h:33
double quantile
Quantile of the summary.
Definition summary.h:31
Type used to represent a Prometheus summary metric.
Definition summary.h:42
struct prometheus_summary_quantile * quantiles
Array of quantiles associated with the Prometheus summary metric.
Definition summary.h:46
struct prometheus_metric * base
Base of the Prometheus summary metric.
Definition summary.h:44
unsigned long count
Total count of observations in the summary metric.
Definition summary.h:52
size_t num_quantiles
Number of quantiles associated with the Prometheus summary metric.
Definition summary.h:48
double sum
Sum of all observed values in the summary metric.
Definition summary.h:50