Home
last modified time | relevance | path

Searched refs:collector (Results 1 – 16 of 16) sorted by relevance

/Zephyr-latest/subsys/net/lib/prometheus/
Dcollector.c26 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 …]
Dformatter.c243 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()
DCMakeLists.txt7 collector.c
/Zephyr-latest/include/zephyr/net/prometheus/
Dcollector.h41 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()
Dformatter.h33 int prometheus_format_exposition(struct prometheus_collector *collector, char *buffer,
Dmetric.h51 struct prometheus_collector *collector; member
Dgauge.h66 .base.collector = _collector, \
Dhistogram.h86 .base.collector = _collector, \
Dcounter.h67 .base.collector = _collector, \
Dsummary.h90 .base.collector = _collector, \
/Zephyr-latest/subsys/net/ip/
Dnet_stats.c425 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/
Dmain.c34 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()
Dstats.c87 stats_collector = net_if_get_default()->collector; in init_stats()
/Zephyr-latest/doc/hardware/peripherals/
Dw1.rst11 Similarly to I2C, 1-Wire uses a bidirectional open-collector data line,
/Zephyr-latest/doc/services/storage/zms/
Dzms.rst299 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/
Dnet_if.h702 (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,