Default alert frequency.
Registers, unregisters and list alerts.
Registers, unregisters and list alerts.
<ex>alert "-u -a"</ex> Unregisters all currently registered alerts.
<ex>alert "-i"</ex> Starts command in interactive mode.
<ex>alert "-u -id=12345678"</ex> Unregisters alert with provided ID.
<ex>alert "-r -t=900 -cc=gte4 -cl=gt50"</ex> Notify every 15 min if grid has >= 4 CPUs and > 50% CPU load.
Command arguments.
Lists all registered alerts.
Lists all registered alerts.
<ex>alert</ex> Prints all currently registered alerts.
Overview
Visor 'alert' command implementation.
Help
+---------------------------------------------------------------------+ | alert | Generates email alerts for user-defined events. | | | Node events and grid-wide events are defined via mnemonics. | +---------------------------------------------------------------------+Specification
Arguments
-u Unregisters alert(s). Either '-a' flag or '-id' parameter is required. Note that only one of the '-u' or '-r' is allowed. If neither '-u' or '-r' provided - all alerts will be printed. -a When provided with '-u' - all alerts will be unregistered. -id=<alert-id> When provided with '-u' - alert with matching ID will be unregistered. -r Register new alert with mnemonic predicate(s). Note that only one of the '-u' or '-r' is allowed. If neither '-u' or '-r' provided - all alerts will be printed. NOTE: Email settings can be specified in GridGain configu Email notification will be sent for the alert only provided mnemonic predicates evaluate to 'true'." -t Defines notification frequency in seconds. Default is 15 minutes. This parameter can only appear with '-r'. -
This defines a mnemonic for the metric that will be measured:
Grid-wide metrics (not node specific):
cc - Total number of available CPUs in the grid.
nc - Total number of nodes in the grid.
hc - Total number of physical hosts in the grid.
cl - Current average CPU load (in %) in the grid.
Per-node current metrics:
aj - Active jobs on the node.
cj - Cancelled jobs on the node.
tc - Thread count on the node.
ut - Up time on the node.
Note: can have 's', 'm', or 'h' suffix indicating
seconds, minutes, and hours. By default (no suffix provided)
value is assumed to be in milliseconds.
je - Job execute time on the node.
jw - Job wait time on the node.
wj - Waiting jobs count on the node.
rj - Rejected jobs count on the node.
hu - Heap memory used (in MB) on the node.
cd - Current CPU load on the node.
hm - Heap memory maximum (in MB) on the node.
),
Comparison part of the mnemonic predicate:
eq - Equal '=' to '' number.
neq - Not equal '!=' to '' number.
gt - Greater than '>' to '' number.
gte - Greater than or equal '>=' to '' number.
lt - Less than '<' to 'NN' number.
lte - Less than or equal '<=' to '' number.
NOTE: Email notification will be sent for the alert only when all
provided mnemonic predicates evaluate to 'true'. Examples
alert Prints all currently registered alerts. alert "-u -a" Unregisters all currently registered alerts. alert "-u -id=12345678" Unregisters alert with provided ID. alert "-r -t=900 -cc=gte4 -cl=gt50" Notify every 15 min if grid has >= 4 CPUs and > 50% CPU load.