Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
prometheus_collector Struct Reference

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.
 

Detailed Description

Prometheus collector definition.

This structure defines a Prometheus collector.

Field Documentation

◆ lock

struct k_mutex prometheus_collector::lock

Mutex to protect the metrics list manipulation.

◆ metrics

sys_slist_t prometheus_collector::metrics

Array of metrics associated with the collector.

◆ name

const char* prometheus_collector::name

Name of the collector.

◆ user_cb

prometheus_scrape_cb_t prometheus_collector::user_cb

User callback function.

If set, then the metric data is fetched via the function callback.

◆ user_data

void* prometheus_collector::user_data

User data.


The documentation for this struct was generated from the following file: