|
Monitoring System 0.1.0
System resource monitoring with pluggable collectors and alerting
|
Counts of connections in each TCP state. More...
#include <network_metrics_collector.h>

Public Member Functions | |
| uint64_t | get_count (tcp_state state) const |
| void | increment (tcp_state state) |
| uint64_t | total () const |
Public Attributes | |
| uint64_t | established {0} |
| ESTABLISHED connections. | |
| uint64_t | syn_sent {0} |
| SYN_SENT connections. | |
| uint64_t | syn_recv {0} |
| SYN_RECV connections. | |
| uint64_t | fin_wait1 {0} |
| FIN_WAIT1 connections. | |
| uint64_t | fin_wait2 {0} |
| FIN_WAIT2 connections. | |
| uint64_t | time_wait {0} |
| TIME_WAIT connections. | |
| uint64_t | close {0} |
| CLOSE connections. | |
| uint64_t | close_wait {0} |
| CLOSE_WAIT connections (leak indicator) | |
| uint64_t | last_ack {0} |
| LAST_ACK connections. | |
| uint64_t | listen {0} |
| LISTEN sockets. | |
| uint64_t | closing {0} |
| CLOSING connections. | |
| uint64_t | unknown {0} |
| Unknown state connections. | |
Counts of connections in each TCP state.
Definition at line 85 of file network_metrics_collector.h.
|
inline |
Get count for a specific state
| state | The TCP state |
Definition at line 104 of file network_metrics_collector.h.
References kcenon::monitoring::CLOSE, close, kcenon::monitoring::CLOSE_WAIT, close_wait, kcenon::monitoring::CLOSING, closing, kcenon::monitoring::ESTABLISHED, established, kcenon::monitoring::FIN_WAIT1, fin_wait1, kcenon::monitoring::FIN_WAIT2, fin_wait2, kcenon::monitoring::LAST_ACK, last_ack, kcenon::monitoring::LISTEN, listen, kcenon::monitoring::SYN_RECV, syn_recv, kcenon::monitoring::SYN_SENT, syn_sent, kcenon::monitoring::TIME_WAIT, time_wait, and unknown.
|
inline |
Increment count for a specific state
| state | The TCP state to increment |
Definition at line 125 of file network_metrics_collector.h.
References kcenon::monitoring::CLOSE, close, kcenon::monitoring::CLOSE_WAIT, close_wait, kcenon::monitoring::CLOSING, closing, kcenon::monitoring::ESTABLISHED, established, kcenon::monitoring::FIN_WAIT1, fin_wait1, kcenon::monitoring::FIN_WAIT2, fin_wait2, kcenon::monitoring::LAST_ACK, last_ack, kcenon::monitoring::LISTEN, listen, kcenon::monitoring::SYN_RECV, syn_recv, kcenon::monitoring::SYN_SENT, syn_sent, kcenon::monitoring::TIME_WAIT, time_wait, and unknown.
|
inline |
Get total connection count
Definition at line 146 of file network_metrics_collector.h.
References close, close_wait, closing, established, fin_wait1, fin_wait2, last_ack, listen, syn_recv, syn_sent, time_wait, and unknown.
| uint64_t kcenon::monitoring::tcp_state_counts::close {0} |
CLOSE connections.
Definition at line 92 of file network_metrics_collector.h.
Referenced by get_count(), increment(), and total().
| uint64_t kcenon::monitoring::tcp_state_counts::close_wait {0} |
CLOSE_WAIT connections (leak indicator)
Definition at line 93 of file network_metrics_collector.h.
Referenced by get_count(), increment(), and total().
| uint64_t kcenon::monitoring::tcp_state_counts::closing {0} |
CLOSING connections.
Definition at line 96 of file network_metrics_collector.h.
Referenced by get_count(), increment(), and total().
| uint64_t kcenon::monitoring::tcp_state_counts::established {0} |
ESTABLISHED connections.
Definition at line 86 of file network_metrics_collector.h.
Referenced by get_count(), increment(), and total().
| uint64_t kcenon::monitoring::tcp_state_counts::fin_wait1 {0} |
FIN_WAIT1 connections.
Definition at line 89 of file network_metrics_collector.h.
Referenced by get_count(), increment(), and total().
| uint64_t kcenon::monitoring::tcp_state_counts::fin_wait2 {0} |
FIN_WAIT2 connections.
Definition at line 90 of file network_metrics_collector.h.
Referenced by get_count(), increment(), and total().
| uint64_t kcenon::monitoring::tcp_state_counts::last_ack {0} |
LAST_ACK connections.
Definition at line 94 of file network_metrics_collector.h.
Referenced by get_count(), increment(), and total().
| uint64_t kcenon::monitoring::tcp_state_counts::listen {0} |
LISTEN sockets.
Definition at line 95 of file network_metrics_collector.h.
Referenced by get_count(), increment(), and total().
| uint64_t kcenon::monitoring::tcp_state_counts::syn_recv {0} |
SYN_RECV connections.
Definition at line 88 of file network_metrics_collector.h.
Referenced by get_count(), increment(), and total().
| uint64_t kcenon::monitoring::tcp_state_counts::syn_sent {0} |
SYN_SENT connections.
Definition at line 87 of file network_metrics_collector.h.
Referenced by get_count(), increment(), and total().
| uint64_t kcenon::monitoring::tcp_state_counts::time_wait {0} |
TIME_WAIT connections.
Definition at line 91 of file network_metrics_collector.h.
Referenced by get_count(), increment(), and total().
| uint64_t kcenon::monitoring::tcp_state_counts::unknown {0} |
Unknown state connections.
Definition at line 97 of file network_metrics_collector.h.
Referenced by get_count(), increment(), and total().