I am using node exporter with kubernetes and prometheus to moniter the number of current tcp connections
From this post i found that node_sockstat_TCP_alloc or node_netstat_Tcp_CurrEstab metric can be used for such thing.
I started doing tcp connection using mosquito connect and pub.
The node_sockstat_TCP_alloc increased as the number of mqtt user increase
But node_netstat_Tcp_CurrEstab is always constant