/Zephyr-latest/subsys/net/lib/prometheus/ |
D | collector.c | 26 int prometheus_collector_register_metric(struct prometheus_collector *collector, in prometheus_collector_register_metric() argument 29 if (!collector || !metric) { in prometheus_collector_register_metric() 36 k_mutex_lock(&collector->lock, K_FOREVER); in prometheus_collector_register_metric() 39 (void)sys_slist_find_and_remove(&collector->metrics, &metric->node); in prometheus_collector_register_metric() 41 sys_slist_prepend(&collector->metrics, &metric->node); in prometheus_collector_register_metric() 43 k_mutex_unlock(&collector->lock); in prometheus_collector_register_metric() 112 const void *prometheus_collector_get_metric(struct prometheus_collector *collector, in prometheus_collector_get_metric() argument 120 if (collector == NULL || name == NULL) { in prometheus_collector_get_metric() 124 k_mutex_lock(&collector->lock, K_FOREVER); in prometheus_collector_get_metric() 126 SYS_SLIST_FOR_EACH_CONTAINER_SAFE(&collector->metrics, metric, tmp, node) { in prometheus_collector_get_metric() [all …]
|
D | formatter.c | 243 int prometheus_format_exposition(struct prometheus_collector *collector, char *buffer, in prometheus_format_exposition() argument 251 if (collector == NULL || buffer == NULL || buffer_size == 0) { in prometheus_format_exposition() 256 k_mutex_lock(&collector->lock, K_FOREVER); in prometheus_format_exposition() 258 SYS_SLIST_FOR_EACH_CONTAINER_SAFE(&collector->metrics, metric, tmp, node) { in prometheus_format_exposition() 261 if (collector->user_cb) { in prometheus_format_exposition() 262 ret = collector->user_cb(collector, metric, collector->user_data); in prometheus_format_exposition() 281 k_mutex_unlock(&collector->lock); in prometheus_format_exposition()
|
D | CMakeLists.txt | 7 collector.c
|
/Zephyr-latest/include/zephyr/net/prometheus/ |
D | collector.h | 41 typedef int (*prometheus_scrape_cb_t)(struct prometheus_collector *collector, 104 int prometheus_collector_register_metric(struct prometheus_collector *collector, 116 const void *prometheus_collector_get_metric(struct prometheus_collector *collector, 128 struct prometheus_collector *collector; member 159 struct prometheus_collector *collector) in prometheus_collector_walk_init() argument 161 if (collector == NULL) { in prometheus_collector_walk_init() 165 ctx->collector = collector; in prometheus_collector_walk_init()
|
D | formatter.h | 33 int prometheus_format_exposition(struct prometheus_collector *collector, char *buffer,
|
D | metric.h | 51 struct prometheus_collector *collector; member
|
D | gauge.h | 66 .base.collector = _collector, \
|
D | histogram.h | 86 .base.collector = _collector, \
|
D | counter.h | 67 .base.collector = _collector, \
|
D | summary.h | 90 .base.collector = _collector, \
|
/Zephyr-latest/subsys/net/ip/ |
D | net_stats.c | 425 iface->collector = entry; in register_prometheus_metrics() 430 if (iface->collector == NULL) { in register_prometheus_metrics() 437 if (entry->base.collector != iface->collector) { in register_prometheus_metrics() 441 prometheus_collector_register_metric(iface->collector, in register_prometheus_metrics() 447 if (entry->base.collector != iface->collector) { in register_prometheus_metrics() 451 prometheus_collector_register_metric(iface->collector, in register_prometheus_metrics() 457 if (entry->base.collector != iface->collector) { in register_prometheus_metrics() 461 prometheus_collector_register_metric(iface->collector, in register_prometheus_metrics() 467 if (entry->base.collector != iface->collector) { in register_prometheus_metrics() 471 prometheus_collector_register_metric(iface->collector, in register_prometheus_metrics() [all …]
|
/Zephyr-latest/samples/net/prometheus/src/ |
D | main.c | 34 struct prometheus_collector *collector; member 61 ret = prometheus_format_exposition(prom_context.collector, prom_buffer, in dyn_handler() 158 prom_context.collector = &test_collector; in main() 163 prometheus_collector_register_metric(prom_context.collector, &prom_context.counter->base); in main()
|
D | stats.c | 87 stats_collector = net_if_get_default()->collector; in init_stats()
|
/Zephyr-latest/doc/hardware/peripherals/ |
D | w1.rst | 11 Similarly to I2C, 1-Wire uses a bidirectional open-collector data line,
|
/Zephyr-latest/doc/services/storage/zms/ |
D | zms.rst | 299 To make the garbage collector not affect the life expectancy of the device it is recommended 322 In addition to the normal writes, garbage collector will move the still valid data from old 325 collector in this case. 335 having the garbage collector moving blocks all the time. 378 - Add the possibility to skip garbage collector for some application usage where ID/value pairs
|
/Zephyr-latest/include/zephyr/net/ |
D | net_if.h | 702 (struct prometheus_collector *collector);) 3247 (.collector = &NET_PROMETHEUS_GET_COLLECTOR_NAME(dev_id, sfx),)) 3256 extern int net_stats_prometheus_scrape(struct prometheus_collector *collector,
|