Skip to content

Commit

Permalink
p/netstat: move established to different graph
Browse files Browse the repository at this point in the history
Estsblished has a different scale than other fields. Also, logaritmic scale is not that useful if we have 2 graphs.

Closes #1473
  • Loading branch information
steveschnepp committed Jun 27, 2024
1 parent 46387c5 commit 4f267bf
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions plugins/node.d.linux/netstat
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ if [ "$1" = "config" ]; then

echo 'multigraph netstat'
echo 'graph_title Netstat, combined'
echo 'graph_args --units=si -l 1 --base 1000 --logarithmic'
echo 'graph_args --units=si -l 0 --base 1000'
echo 'graph_vlabel TCP connections'
echo 'graph_category network'
echo 'graph_period second'
Expand Down Expand Up @@ -99,11 +99,6 @@ if [ "$1" = "config" ]; then
echo 'resets.info The number of TCP connection resets.'
print_warning resets
print_critical resets
echo 'established.label established'
echo 'established.type GAUGE'
echo 'established.info The number of currently open connections.'
print_warning established
print_critical established

echo ''

Expand Down Expand Up @@ -133,7 +128,6 @@ echo 'multigraph netstat'
/passive connection ope/ { print "passive.value " $1 }
/failed connection/ { print "failed.value " $1 }
/connection resets/ { print "resets.value " $1 }
/connections established/ { print "established.value " $1 }'
echo
Expand Down

0 comments on commit 4f267bf

Please sign in to comment.