Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add file descriptor details to cat/nodes
cat/nodes currently does not report any details related to file descriptors. This adds the current number in use, the maximum number available as well as their ratio (percentage) to cat/nodes as hidden-by-default metrics. In addition, this also adds current heap usage (as a non-percentage of ts max) and ram usage (as a non-percerntage of its max) to allow tools to provide more granularity. Closes #7652
- Loading branch information
Showing
3 changed files
with
71 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
"Test cat nodes output": | ||
|
||
- do: | ||
cat.nodes: {} | ||
|
||
- match: | ||
$body: | | ||
/ #host ip heap.percent ram.percent load node.role master name | ||
^ (\S+ \s+ (\d{1,3}\.){3}\d{1,3} \s+ \d+ \s+ \d* \s+ \d* \s+ [-dc] \s+ [-*mx] \s+ \S+ \s+ \n)+ $/ | ||
- do: | ||
cat.nodes: | ||
v: true | ||
|
||
- match: | ||
$body: | | ||
/^ host \s+ ip \s+ heap\.percent \s+ ram\.percent \s+ load \s+ node\.role \s+ master \s+ name \s+ \n | ||
(\S+ \s+ (\d{1,3}\.){3}\d{1,3} \s+ \d+ \s+ \d* \s+ \d* \s+ [-dc] \s+ [-*mx] \s+ \S+ \s+ \n)+ $/ | ||
- do: | ||
cat.nodes: | ||
h: heap.current,heap.percent,heap.max | ||
v: true | ||
|
||
- match: | ||
$body: | | ||
/^ heap\.current \s+ heap\.percent \s+ heap\.max \s+ \n | ||
(\s+ \d+(\.\d+)?[ptgmk]?b \s+ \d+ \s+ \d+(\.\d+)?[ptgmk]?b \s+ \n)+ $/ | ||
- do: | ||
cat.nodes: | ||
h: file_desc.current,file_desc.percent,file_desc.max | ||
v: true | ||
|
||
- match: | ||
$body: | | ||
/^ file_desc\.current \s+ file_desc\.percent \s+ file_desc\.max \s+ \n | ||
(\s+ \d+ \s+ \d+ \s+ \d+ \s+ \n)+ $/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters