Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
|
Network statistics. More...
#include <zephyr/types.h>
#include <zephyr/net/net_core.h>
#include <zephyr/net/net_mgmt.h>
#include <zephyr/net/prometheus/collector.h>
#include <zephyr/net/prometheus/counter.h>
#include <zephyr/net/prometheus/metric.h>
#include <zephyr/net/prometheus/gauge.h>
#include <zephyr/net/prometheus/histogram.h>
#include <zephyr/net/prometheus/summary.h>
Go to the source code of this file.
Data Structures | |
struct | net_stats_bytes |
Number of bytes sent and received. More... | |
struct | net_stats_pkts |
Number of network packets sent and received. More... | |
struct | net_stats_ip |
IP layer statistics. More... | |
struct | net_stats_ip_errors |
IP layer error statistics. More... | |
struct | net_stats_icmp |
ICMP statistics. More... | |
struct | net_stats_tcp |
TCP statistics. More... | |
struct | net_stats_udp |
UDP statistics. More... | |
struct | net_stats_ipv6_nd |
IPv6 neighbor discovery statistics. More... | |
struct | net_stats_ipv6_pmtu |
IPv6 Path MTU Discovery statistics. More... | |
struct | net_stats_ipv4_pmtu |
IPv4 Path MTU Discovery statistics. More... | |
struct | net_stats_ipv6_mld |
IPv6 multicast listener daemon statistics. More... | |
struct | net_stats_ipv4_igmp |
IPv4 IGMP daemon statistics. More... | |
struct | net_stats_dns |
DNS statistics. More... | |
struct | net_stats_tx_time |
Network packet transfer times for calculating average TX time. More... | |
struct | net_stats_rx_time |
Network packet receive times for calculating average RX time. More... | |
struct | net_stats_tc |
Traffic class statistics. More... | |
struct | net_stats_pm |
Power management statistics. More... | |
struct | net_stats |
All network statistics in one struct. More... | |
struct | net_stats_eth_errors |
Ethernet error statistics. More... | |
struct | net_stats_eth_flow |
Ethernet flow control statistics. More... | |
struct | net_stats_eth_csum |
Ethernet checksum statistics. More... | |
struct | net_stats_eth_hw_timestamp |
Ethernet hardware timestamp statistics. More... | |
struct | net_stats_eth |
All Ethernet specific statistics. More... | |
struct | net_stats_ppp |
All PPP specific statistics. More... | |
struct | net_stats_sta_mgmt |
All Wi-Fi management statistics. More... | |
struct | net_stats_wifi |
All Wi-Fi specific statistics. More... | |
Macros | |
#define | NET_STATS_GET_METRIC_NAME(_name) |
#define | NET_STATS_GET_COLLECTOR_NAME(dev_id, sfx) |
#define | NET_STATS_GET_VAR(dev_id, sfx, var) |
#define | NET_STATS_GET_INSTANCE(dev_id, sfx, _not_used) |
#define | NET_STATS_PROMETHEUS_COUNTER_DEFINE(_desc, _labelval, _not_used, _collector, _name, _stat_var_ptr) |
#define | NET_STATS_PROMETHEUS_GAUGE_DEFINE(_desc, _labelval, _not_used, _collector, _name, _stat_var_ptr) |
#define | NET_STATS_PROMETHEUS_SUMMARY_DEFINE(_desc, _labelval, _not_used, _collector, _name, _stat_var_ptr) |
#define | NET_STATS_PROMETHEUS_HISTOGRAM_DEFINE(_desc, _labelval, _not_used, _collector, _name, _stat_var_ptr) |
#define | NET_STATS_PROMETHEUS_IPV6(iface, dev_id, sfx) |
#define | NET_STATS_PROMETHEUS_IPV4(iface, dev_id, sfx) |
#define | NET_STATS_PROMETHEUS_ICMP(iface, dev_id, sfx) |
#define | NET_STATS_PROMETHEUS_UDP(iface, dev_id, sfx) |
#define | NET_STATS_PROMETHEUS_TCP(iface, dev_id, sfx) |
#define | NET_STATS_PROMETHEUS_IPV6_ND(iface, dev_id, sfx) |
#define | NET_STATS_PROMETHEUS_IPV6_PMTU(iface, dev_id, sfx) |
#define | NET_STATS_PROMETHEUS_IPV4_PMTU(iface, dev_id, sfx) |
#define | NET_STATS_PROMETHEUS_MLD(iface, dev_id, sfx) |
#define | NET_STATS_PROMETHEUS_IGMP(iface, dev_id, sfx) |
#define | NET_STATS_PROMETHEUS_DNS(iface, dev_id, sfx) |
#define | NET_STATS_PROMETHEUS_TX_TIME(iface, dev_id, sfx) |
#define | NET_STATS_PROMETHEUS_RX_TIME(iface, dev_id, sfx) |
#define | NET_STATS_PROMETHEUS(iface, dev_id, sfx) |
Typedefs | |
typedef uint32_t | net_stats_t |
Network statistics counter. | |
Network statistics.
Network statistics data. This should only be enabled when debugging as it consumes memory.