Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...


AttributeDescription/ Purpose
1IdUnique Identifier for Alert
2AlarmIdId of the Alarm that failed, caued caused an alert to be raised
3ClusterIdId of the daemon on which the Alert was created (Only on the Mgmt backend, absent on the daemon)
4InstanceNameName of the node for which the Alert was raised
5RaisedDateThe timestamp when of the alert
6CauseReason of the failuerfailure
7DetailedMessageDetailed message if there is one.
8LevelLevel of the error (Error/ Fatal)
9HasReadIndicates whether the Alert is new or has been read.

...

The following steps will be performed on the deamondaemon:

  1. Rules are added by the use through the API or csv file upload
  2. A job is executed every minute that does the following:
    1. Picks up a AlarmCondition
    2. Executes the condition
    3. On Success
      1. Updates the LastRun with current time and LastStatus to 'Success'
    4. On Failure
      1. Updates the LastRun with current time and LastStatus to 'Failure'
      2. Generates an alert with Condition, ClusterId, InstanceName, and Error Reason
      3. If Recovery Action is present try and execute the action recovery could be
        1. Try and restart failing component
        2. Try and restart the A-Stack engine on the failing node
  3. Find new alerts (Newer than the last run) Sends email notification for the alert

...

Column NameMandatoryDescription
ClusterIdYesThis column defines the cluster the AlarmCondition belongs to and it deployed on the corresponding daemon. It is the only positional field and must always be the first column. All other columns can be shuffled, as long as the name is correct. An alarm with a non-existent ClusterId will be ignored.
InstanceNameYesDefines the instance this AlarmCondition belongs to in the Cluster.
ComponentNameYesThis is a logical grouping of AlarmConditions within an Instance. It can be any name that is meaningful to the application. All AlarmConditions  with the same component will be grouped together on the dashboard.
NameYesThis is a meaningful name for an AlarmCondition it must be unique within an instance in a Cluster. The duplicate entry will simply be ignored.
DescriptionNoThis is a meaningful description for an AlarmCondition.
EnabledYesThis is a boolean field that indicates if this AlarmCondition is enabled. Only Conditions that are enabled will be executed to check for success or failures. An alarm condition can be enabled or disabled using the update AlarmCondition mechanism.
TypeYesThis column defined the type of condition being tested. The currently supported types are: "Facet","HTTP","Sequence","WS","Log","Info" (All case sensitive)
- Facet: Test if a facet is present and active.
- HTTP: Test if an endpoint is up and responding
- Sequence: Test if a scheduled job is present
- WS: Test if a websocket is up and responsive
- Log: Monitor the log files for error and fatal conditions
- Info: Monitor critical parameters like NullChannel, FreeChannel
CheckCondition.ProtocolYesThe protocol for the test.
CheckCondition.URLHostYesThe IP Address of the host to be tested.
CheckCondition.URLPortYesThe port at which the services running.
CheckCondition.URLEndpointConditionalThe endpoint at which the test is to be performed. Mandatory for types: HTTP, Sequence, Log, WS.
CheckCondition.FacetNameConditionalThe Facet whose presence is t to be tested. Mandatory for type: Facet.
CheckCondition.SequenceNameConditionalThe Scheduled job whose presence is t to be tested. Mandatory for type: Sequence.
CheckCondition.QueryConditionalThe query that must be executed on the endpoint. Mandatory for type: HTTP.
CheckCondition.TimeoutConditionalThe amount of time query will wait for the server to respond, before declaring it a failure. Mandatory for type: Facet, HTTP, Sequence, Info, WS.
CheckCondition.HeadersDataNoAny header information that is required for a query to execute successfully. Applicable to HTTP type.
IsRecoverableYesThis boolean field defines if the failure of an AlarmCondition will trigger a recovery action.
RecoveryAction.ActiveYesWhen a recovery action is present this field defines if the recovery action is true when it is created. If it is set to false, the system will change it to true once the Alarm Condition is active.
RecoveryAction.TypeConditionalMandatory if AlarmCondition is recoverable. There are types of recovery actions, "HTTP" and "RESTART".
HTTP: tries to execute a query on an endpoint in attempt to recover.
RESTART: Restart the target applications A-Stack engine in attempt to recover.
RecoveryAction.AttemptAfterCountConditionalMandatory if AlarmCondition is recoverable. Number of failures after which recovery must be attempted. (Even for multiple failures, Alerts will only be raised on the first transition from "Success" to "Failure".
RecoveryAction.ProtocolConditionalThe protocol for the recovery. Mandatory if recovery type is HTTP.
RecoveryAction.URLHost
The IP Address of the host to be recovered. Mandatory if recovery type is HTTP.
RecoveryAction.URLPort
The port at which the services running. Mandatory if recovery type is HTTP.
RecoveryAction.URLEndpoint
The endpoint at which the recovery is to be performed. Mandatory if recovery type is HTTP.
RecoveryAction.Query
Query to be executed at the endpoint. Mandatory if recovery type is HTTP.
RecoveryAction.Timeout
Amount of time system waits for the server to respond. Mandatory if recovery type is HTTP.

...