Alarms & Notifications

Understanding KloudMate Alarms

12min
developers can create custom kloudmate alarms to monitor the events that are critical to their application these alarms are based on a set of evaluation criteria that determines if the alarm will be triggered or not key concepts of kloudmate alarms alarm rule an alarm rule is a set of evaluation criteria that contains one or more queries, expressions, and conditions it also specifies the frequency of evaluation and the duration for which the condition should be met in order for the alarm to be triggered alarm query a query is a set of configurational instructions that is used to request data from a data source for kloudmate alarms, developers can choose aws cloudwatch or kloudmate as their data source alarm expressions an expression is used to manipulate, reduce or transform the data returned from queries using math operations, and reduction functions it is also used to set alarm conditions against data returned directly from a query or against transformed data returned by an expression notification channel notification channels are the chatops and communication platforms where the notifications for the alarms are sent kloudmate integrates with some of the most widely used workplace chatops tools such as slack, email, and more notification tags tags are used to add name value attributes to the alarm in order to provide cross reference and mapping capability between the alarm and the notification policies notification policies these are a set of rules to define when, where, and how the alarm notifications are sent notification policies are configured to send a notification to a particular notification channel when an alarm with matching tags is triggered alarm labels alarm labels are key value pairs containing additional information about the alarm rule kloudmate assigns labels to alarm queries on the basis of the dimensions that the query uses alarm expressions inherit the labels of the alarm queries labels decide whether operations between queries and expressions are allowed or not operations between expressions and queries are allowed if they have the same label or when one label is a subset of the other users can view the labels when they preview the alarms multi dimensional alarms kloudmate alarms support the creation of multiple alarms per alarm rule these are called multi dimensional alarms for example, an alarm rule evaluating if any lambda functions have been throttled will create individual alarms for each function that has been throttled workflow of kloudmate alarms an alarm rule is configured to retrieve data from the selected data source by running queries reduce or transform the query results using expressions compare queries and expressions to each other or to pre defined thresholds based on conditions define how long the condition should be met before the alarm gets triggered once the condition is met and is found true for the defined duration, kloudmate maps the tags added with the alarm to the tags added with the notification policy then a notification is sent to the appropriate notification channel note if no tags are specified in the notification policy that is configured for an alarm then it will match all alarm tags the following diagram gives a general outline of the lifecycle of a kloudmate alarm kloudmate alarm states kloudmate alarm states are the status indicators of the alarms kloudmate lets users filter and view their alarms based on the alarm states following are the kloudmate alarm states firing/alerting the state of an alarm that has been active for longer than the configured duration pending the state of an alarm that has been active for less than the configured threshold duration normal the state of an alarm that is neither firing nor pending and everything is working as expected error the state of an alarm when an error occurred during the evaluation no data no data has been received for the configured time window related resources setting up kloudmate alarms https //docs kloudmate com/setting up kloudmate alarms writing expressions for kloudmate alarms