Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
|
Prometheus collector definition. More...
#include <collector.h>
Data Fields | |
const char * | name |
Name of the collector. | |
sys_slist_t | metrics |
Array of metrics associated with the collector. | |
struct k_mutex | lock |
Mutex to protect the metrics list manipulation. | |
prometheus_scrape_cb_t | user_cb |
User callback function. | |
void * | user_data |
User data. | |
Prometheus collector definition.
This structure defines a Prometheus collector.
struct k_mutex prometheus_collector::lock |
Mutex to protect the metrics list manipulation.
sys_slist_t prometheus_collector::metrics |
Array of metrics associated with the collector.
const char* prometheus_collector::name |
Name of the collector.
prometheus_scrape_cb_t prometheus_collector::user_cb |
User callback function.
If set, then the metric data is fetched via the function callback.
void* prometheus_collector::user_data |
User data.