/Zephyr-latest/subsys/net/lib/prometheus/ |
D | formatter.c | 49 int prometheus_format_one_metric(struct prometheus_metric *metric, char *buffer, in prometheus_format_one_metric() argument 55 if (metric->description[0] != '\0') { in prometheus_format_one_metric() 57 "# HELP %s %s\n", metric->name, in prometheus_format_one_metric() 58 metric->description); in prometheus_format_one_metric() 66 switch (metric->type) { in prometheus_format_one_metric() 69 "# TYPE %s counter\n", metric->name); in prometheus_format_one_metric() 79 "# TYPE %s gauge\n", metric->name); in prometheus_format_one_metric() 89 "# TYPE %s histogram\n", metric->name); in prometheus_format_one_metric() 99 "# TYPE %s summary\n", metric->name); in prometheus_format_one_metric() 109 "# TYPE %s untyped\n", metric->name); in prometheus_format_one_metric() [all …]
|
D | collector.c | 27 struct prometheus_metric *metric) in prometheus_collector_register_metric() argument 29 if (!collector || !metric) { in prometheus_collector_register_metric() 34 LOG_DBG("Registering metric type=%d name=\"%s\"", metric->type, metric->name); 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() 117 struct prometheus_metric *metric; in prometheus_collector_get_metric() local 126 SYS_SLIST_FOR_EACH_CONTAINER_SAFE(&collector->metrics, metric, tmp, node) { in prometheus_collector_get_metric() 128 if (strncmp(metric->name, name, strlen(metric->name)) == 0) { in prometheus_collector_get_metric() 129 type = metric->type; in prometheus_collector_get_metric() 132 LOG_DBG("metric found: %s", metric->name); in prometheus_collector_get_metric() [all …]
|
D | Kconfig | 14 int "Max label count in metric" 18 Specify how many labels can be attached to a metric.
|
/Zephyr-latest/include/zephyr/net/prometheus/ |
D | collector.h | 42 struct prometheus_metric *metric, 105 struct prometheus_metric *metric); 129 struct prometheus_metric *metric; member 167 ctx->metric = NULL; in prometheus_collector_walk_init()
|
D | formatter.h | 49 int prometheus_format_one_metric(struct prometheus_metric *metric, char *buffer,
|
D | metric.h | 56 void *metric; member
|
/Zephyr-latest/scripts/footprint/ |
D | compare_footprint | 253 for metric, _ in interesting_metrics: 254 if metric not in golden_metric or metric not in test_data: 256 if test_data[metric] == "": 258 delta = test_data[metric] - golden_metric[metric] 261 tmp[metric] = { 263 'current': test_data[metric], 280 for metric, value in data.items(): 284 "RAM" if metric == "ram_size" else "ROM", percentage,
|
/Zephyr-latest/subsys/net/ip/ |
D | net_stats.c | 486 struct prometheus_metric *metric, in net_stats_prometheus_scrape() argument 501 if (metric->type == PROMETHEUS_COUNTER) { in net_stats_prometheus_scrape() 503 CONTAINER_OF(metric, struct prometheus_counter, base); in net_stats_prometheus_scrape() 513 } else if (metric->type == PROMETHEUS_GAUGE) { in net_stats_prometheus_scrape() 515 CONTAINER_OF(metric, struct prometheus_gauge, base); in net_stats_prometheus_scrape() 525 } else if (metric->type == PROMETHEUS_HISTOGRAM) { in net_stats_prometheus_scrape() 527 CONTAINER_OF(metric, struct prometheus_histogram, base); in net_stats_prometheus_scrape() 533 } else if (metric->type == PROMETHEUS_SUMMARY) { in net_stats_prometheus_scrape() 535 CONTAINER_OF(metric, struct prometheus_summary, base); in net_stats_prometheus_scrape() 542 strstr(metric->name, "_tx_time_summary") == 0) { in net_stats_prometheus_scrape() [all …]
|
/Zephyr-latest/scripts/pylib/twister/twisterlib/ |
D | reports.py | 513 for metric, mtype, lower_better in interesting_metrics: 514 if metric not in instance.metrics: 516 if sm[metric] == "": 518 delta = instance.metrics.get(metric, 0) - mtype(sm[metric]) 521 results.append((instance, metric, instance.metrics.get(metric, 0), delta, 534 for i, metric, value, delta, lower_better in deltas:
|
/Zephyr-latest/samples/net/prometheus/ |
D | README.rst | 5 Implement a Prometheus Metric Server demonstrating various metric types.
|
/Zephyr-latest/samples/net/sockets/echo_client/ |
D | README.rst | 274 …fd11:22::5188:1678:d0c0:6893 from :: via fd11:db8:1::2 dev otbr0 src fd11:db8:1::1 metric 1024 pre…
|
/Zephyr-latest/doc/releases/ |
D | migration-guide-4.1.rst | 350 * The Prometheus metric creation has changed as user does not need to have a separate
|
/Zephyr-latest/include/zephyr/net/ |
D | net_if.h | 3257 struct prometheus_metric *metric,
|
/Zephyr-latest/doc/develop/test/ |
D | twister.rst | 601 For example, to extract three data fields ``metric``, ``cycles``, 607 regex: "(?P<metric>.*):(?P<cycles>.*) cycles, (?P<nanoseconds>.*) ns"
|