Merge pull request #1733 from prometheus/superq/OutRsts
Include TCP OutRsts in netstat metrics
This commit is contained in:
commit
08ce3c6dd4
|
@ -3,7 +3,7 @@
|
||||||
* [CHANGE] Improve filter flag names.
|
* [CHANGE] Improve filter flag names.
|
||||||
* [CHANGE]
|
* [CHANGE]
|
||||||
* [FEATURE]
|
* [FEATURE]
|
||||||
* [ENHANCEMENT]
|
* [ENHANCEMENT] Include TCP OutRsts in netstat metrics
|
||||||
* [BUGFIX]
|
* [BUGFIX]
|
||||||
|
|
||||||
## 1.0.1 / 2020-06-15
|
## 1.0.1 / 2020-06-15
|
||||||
|
|
|
@ -1886,6 +1886,9 @@ node_netstat_Tcp_InErrs 5
|
||||||
# HELP node_netstat_Tcp_InSegs Statistic TcpInSegs.
|
# HELP node_netstat_Tcp_InSegs Statistic TcpInSegs.
|
||||||
# TYPE node_netstat_Tcp_InSegs untyped
|
# TYPE node_netstat_Tcp_InSegs untyped
|
||||||
node_netstat_Tcp_InSegs 5.7252008e+07
|
node_netstat_Tcp_InSegs 5.7252008e+07
|
||||||
|
# HELP node_netstat_Tcp_OutRsts Statistic TcpOutRsts.
|
||||||
|
# TYPE node_netstat_Tcp_OutRsts untyped
|
||||||
|
node_netstat_Tcp_OutRsts 1003
|
||||||
# HELP node_netstat_Tcp_OutSegs Statistic TcpOutSegs.
|
# HELP node_netstat_Tcp_OutSegs Statistic TcpOutSegs.
|
||||||
# TYPE node_netstat_Tcp_OutSegs untyped
|
# TYPE node_netstat_Tcp_OutSegs untyped
|
||||||
node_netstat_Tcp_OutSegs 5.4915039e+07
|
node_netstat_Tcp_OutSegs 5.4915039e+07
|
||||||
|
|
|
@ -1955,6 +1955,9 @@ node_netstat_Tcp_InErrs 5
|
||||||
# HELP node_netstat_Tcp_InSegs Statistic TcpInSegs.
|
# HELP node_netstat_Tcp_InSegs Statistic TcpInSegs.
|
||||||
# TYPE node_netstat_Tcp_InSegs untyped
|
# TYPE node_netstat_Tcp_InSegs untyped
|
||||||
node_netstat_Tcp_InSegs 5.7252008e+07
|
node_netstat_Tcp_InSegs 5.7252008e+07
|
||||||
|
# HELP node_netstat_Tcp_OutRsts Statistic TcpOutRsts.
|
||||||
|
# TYPE node_netstat_Tcp_OutRsts untyped
|
||||||
|
node_netstat_Tcp_OutRsts 1003
|
||||||
# HELP node_netstat_Tcp_OutSegs Statistic TcpOutSegs.
|
# HELP node_netstat_Tcp_OutSegs Statistic TcpOutSegs.
|
||||||
# TYPE node_netstat_Tcp_OutSegs untyped
|
# TYPE node_netstat_Tcp_OutSegs untyped
|
||||||
node_netstat_Tcp_OutSegs 5.4915039e+07
|
node_netstat_Tcp_OutSegs 5.4915039e+07
|
||||||
|
|
|
@ -35,7 +35,7 @@ const (
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
netStatFields = kingpin.Flag("collector.netstat.fields", "Regexp of fields to return for netstat collector.").Default("^(.*_(InErrors|InErrs)|Ip_Forwarding|Ip(6|Ext)_(InOctets|OutOctets)|Icmp6?_(InMsgs|OutMsgs)|TcpExt_(Listen.*|Syncookies.*|TCPSynRetrans)|Tcp_(ActiveOpens|InSegs|OutSegs|PassiveOpens|RetransSegs|CurrEstab)|Udp6?_(InDatagrams|OutDatagrams|NoPorts|RcvbufErrors|SndbufErrors))$").String()
|
netStatFields = kingpin.Flag("collector.netstat.fields", "Regexp of fields to return for netstat collector.").Default("^(.*_(InErrors|InErrs)|Ip_Forwarding|Ip(6|Ext)_(InOctets|OutOctets)|Icmp6?_(InMsgs|OutMsgs)|TcpExt_(Listen.*|Syncookies.*|TCPSynRetrans)|Tcp_(ActiveOpens|InSegs|OutSegs|OutRsts|PassiveOpens|RetransSegs|CurrEstab)|Udp6?_(InDatagrams|OutDatagrams|NoPorts|RcvbufErrors|SndbufErrors))$").String()
|
||||||
)
|
)
|
||||||
|
|
||||||
type netStatCollector struct {
|
type netStatCollector struct {
|
||||||
|
|
Loading…
Reference in New Issue