@@ -468,26 +468,23 @@ Run a check and filter performance data.
468468
469469` filter_perf ` while badly named can be used to prost process performance data.
470470
471- A good example is sorting performance data or limiting the number of performance data items shown.
471+ It can be useful for sorting performance data or limiting the number of performance data items shown.
472472
473-
474- In its most basic form you can run ` filter_perf command=COMMAND arguments REGULAR ARGUMENTS ` in your case:
473+ In its most basic form you can run ` filter_perf command=COMMAND arguments REGULAR ARGUMENTS ` for example ` check_process ` :
475474```
476475filter_perf command=check_process arguments "filter=exe not in ('sqlservr.exe')" "warn=working_set > 3G" "crit=working_set > 5G"
477476L cli WARNING: WARNING: clion64.exe=started
478477L cli Performance data: ' ws_size'=0GB;3;5 ' ws_size'=0GB;3;5 ' ws_size'=0GB;3;5 ' ...
479478```
480479
481- This will not do an anything by it self but now you have the option for instance to sort the performance data by adding ` sort=normal ` :
480+ This will not do an anything by itself but we can for instance dort performance data entries by adding ` sort=normal ` :
482481```
483482filter_perf sort=normal command=check_process arguments "filter=exe not in ('sqlservr.exe')" "warn=working_set > 3G" "crit=working_set > 5G"
484483L cli WARNING: WARNING: clion64.exe=started
485484L cli Performance data: 'clion64.exe ws_size'=3.30851GB;3;5 'Rider.Backend.exe ws_size'=1.80017GB;3;5 'clangd.exe ws_size'=1.4822GB;3;5 'devenv.exe ws_size'=1.14938GB;3;5 ...
486485```
487486
488- As you can see we now have the biggest process at the top.
489-
490- Now this still return a million entries so you can add ` limit=5 ` to only return the first 5 values:
487+ And further can also limit the number of results shown by adding ` limit=5 ` like so:
491488```
492489filter_perf sort=normal limit=5 command=check_process arguments "filter=exe not in ('sqlservr.exe')" "warn=working_set > 3G" "crit=working_set > 5G"
493490L cli WARNING: WARNING: clion64.exe=started
@@ -681,29 +678,34 @@ This is the syntax for the base names of the performance data.
681678#### Filter keywords
682679
683680
684- | Option | Description |
685- | ---------------| --------------------------------------------------------------------------------------------------------------|
686- | count | Number of items matching the filter. Common option for all checks. |
687- | crit | Major version number |
688- | crit_count | Number of items matched the critical criteria. Common option for all checks. |
689- | crit_list | A list of all items which matched the critical criteria. Common option for all checks. |
690- | detail_list | A special list with critical, then warning and finally ok. Common option for all checks. |
691- | key | Major version number |
692- | list | A list of all items which matched the filter. Common option for all checks. |
693- | max | Major version number |
694- | message | Major version number |
695- | min | Major version number |
696- | ok_count | Number of items matched the ok criteria. Common option for all checks. |
697- | ok_list | A list of all items which matched the ok criteria. Common option for all checks. |
698- | problem_count | Number of items matched either warning or critical criteria. Common option for all checks. |
699- | problem_list | A list of all items which matched either the critical or the warning criteria. Common option for all checks. |
700- | status | The returned status (OK/WARN/CRIT/UNKNOWN). Common option for all checks. |
701- | total | Total number of items. Common option for all checks. |
702- | unit | Major version number |
703- | value | Major version number |
704- | warn | Major version number |
705- | warn_count | Number of items matched the warning criteria. Common option for all checks. |
706- | warn_list | A list of all items which matched the warning criteria. Common option for all checks. |
681+ | Option | Description |
682+ | ---------| ----------------------|
683+ | crit | Major version number |
684+ | key | Major version number |
685+ | max | Major version number |
686+ | message | Major version number |
687+ | min | Major version number |
688+ | unit | Major version number |
689+ | value | Major version number |
690+ | warn | Major version number |
691+
692+ ** Common options for all checks:**
693+
694+ | Option | Description |
695+ | ---------------| --------------------------------------------------------------------------------|
696+ | count | Number of items matching the filter. |
697+ | crit_count | Number of items matched the critical criteria. |
698+ | crit_list | A list of all items which matched the critical criteria. |
699+ | detail_list | A special list with critical, then warning and finally ok. |
700+ | list | A list of all items which matched the filter. |
701+ | ok_count | Number of items matched the ok criteria. |
702+ | ok_list | A list of all items which matched the ok criteria. |
703+ | problem_count | Number of items matched either warning or critical criteria. |
704+ | problem_list | A list of all items which matched either the critical or the warning criteria. |
705+ | status | The returned status (OK/WARN/CRIT/UNKNOWN). |
706+ | total | Total number of items. |
707+ | warn_count | Number of items matched the warning criteria. |
708+ | warn_list | A list of all items which matched the warning criteria. |
707709
708710
709711### xform_perf
0 commit comments