Changes for page Customize Queue Alerting
Last modified by dfirdausy on 2024/09/04 15:45
From version 57.15
edited by dfirdausy
on 2024/07/29 12:22
on 2024/07/29 12:22
Change comment:
There is no comment for this version
To version 22.1
edited by Erik Bakker
on 2022/06/10 09:47
on 2022/06/10 09:47
Change comment:
Deleted image "novice-alerting-linking-tags-to-triggers--example-trigger-detail-no-tag.png"
Summary
-
Page properties (5 modified, 0 added, 0 removed)
-
Attachments (0 modified, 2 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,1 +1,1 @@ 1 - CustomizeQueue Alerting1 +Linking Tag(s) to Trigger(s) - Parent
-
... ... @@ -1,1 +1,1 @@ 1 - Main.eMagiz Academy.Microlearnings.Novice.Alerting.WebHome1 +WebHome - Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. dfirdausy1 +XWiki.ebakker - Default language
-
... ... @@ -1,1 +1,0 @@ 1 -en - Content
-
... ... @@ -1,83 +1,77 @@ 1 1 {{container}}{{container layoutStyle="columns"}}((( 2 -In this microlearning, we will focus on how you can customize your queue alerts by configuring the trigger conditions and thresholds, which raise an alert and notify people when those points are passed. Should you want to learn more about the standard alerting that eMagiz offers or the general concept of eMagiz Queue Alerting, please check out this [[microlearning>>doc:Main.eMagiz Academy.Microlearnings.Crash Course.Crash Course Platform.crashcourse-platform-manage-alerting-gen3||target="blank"]]. 2 +In this microlearning, we will focus on how you can link your alerting tag(s) to alerting trigger(s). 3 +In a previous microlearning we already discussed parts of this. In this microlearning we will zoom in on the Trigger section of Alerting. 3 3 4 4 Should you have any questions, please contact [[academy@emagiz.com>>mailto:academy@emagiz.com]]. 5 5 6 -{{info}}Note that this documentation explains the latest design of eMagiz Queue Alerting that is released on 1st of August 2024 and the Queue Alerting explained in this page is only applicable for eMagiz models that are running the [[current generation runtime architecture>>doc:Main.eMagiz Academy.Fundamentals.fundamental-runtime-generation3||target="blank"]]{{/info}} 7 +* Last update: April 1th 2021 8 +* Required reading time: 5 minutes 7 7 8 8 == 1. Prerequisites == 9 9 10 10 * Basic knowledge of the eMagiz platform 11 -* Basic knowledge of alerting in the eMagiz platform 12 12 13 13 == 2. Key concepts == 14 14 15 -This microlearning focuses on customizing the queue alerts that are existing in each of the environment of your model (i.e., Testing-Acceptance-Production). By customizing we mean further configuring the trigger conditions and thresholds of your queues from the general default settings provided by eMagiz, so they better suit your needs and requirements. 16 +This microlearning centers around linking tag(s) to trigger(s). 17 +With linking, we mean: Categorize a certain trigger with the help of tag functionality 16 16 17 -* eMagiz applies the same set of triggers to all queues. 18 -* There are four queue trigger options that eMagiz currently provides: 19 -** Consumers check 20 -** Queue load check 21 -** Inactivity check 22 -** Periodic activity check 23 -* Recipients are defined on the queue level. 19 +* Make tags descriptive in nature 20 +* Re-use tags over multiple triggers that have the same aim 21 +* In case of a start, daily and end alert use the same tag for all of them 24 24 25 -== 3. Queue Alerting == 26 -As discussed in the previous [[microlearning>>doc:Main.eMagiz Academy.Microlearnings.Crash Course.Crash Course Platform.crashcourse-platform-manage-alerting-gen3||target="blank"]], queue alerting refers to the configuration of alerts that work by applying a uniform set of triggers to all queues in your model. 27 27 28 -[[image:Main.Images.Microlearning.WebHome@crashcourse-platform-manage-alerting-in-emagiz-queue-alerts-overview.png]] 29 29 30 - Here,whenyou navigate to Manage->Alerting->Triggers,you will findall the queues that aregenerated by eMagiz currently existingwithin yourmodel, along with the triggerconditionsand thresholds that are applied to each of these queues. In the following sections, we will discuss how you can tune these queue triggers to your needs.25 +== 3. Linking Tag(s) to Trigger(s) == 31 31 32 - ===3.1CustomizeDefaultValues===27 +In our previous dalliance with this subject we already discussed parts of what we will discuss in this microlearning. This microlearning is mainly meant to reiterate the importance of using proper tags when setting up your alerting. Linking the correct tag(s) to your trigger(s) will help you to clarify how the alerting structure for your project is set up. This is not only nice when you want to revisit the alerting section but it is also very usefull in communication with the business and with a support desk. This way you can create a common truth surrounding a common language. Key parts in achieving this are: 33 33 34 -Changes to the default values will only apply to queue triggers that are set to use the default values, and not to those you have already customized. To modify the default values configured by eMagiz, you can click the "Configure defaults" button at the top of the queue trigger list. Note that if your account does not have edit rights in Manage for a specific environment, you will see a "View defaults" button instead. 29 +* Make tags descriptive in nature 30 +* Re-use tags over multiple triggers that have the same aim 31 +* In case of a start, daily and end alert use the same tag for all of them 35 35 36 - [[image:Main.Images.Microlearning.WebHome@novice-alerting-customize-queue-alerting-consumers-check-queue-load-check.png]]33 +To link tag(s) to trigger(s) you navigate to Manage -> Alerting -> Triggers 37 37 38 - Here,youwillget a pop-up pagequiteresembling to theonewhenyoucustomizethe triggers for individual queues.Thedifferenceisthat hereyou havethe buttonto Resetthe defaultvalues tothe defaultvalues fromeMagiz andtheSave buttonis Updatedefaults,whichwillapplythedefaultvaluesthatyou configured toall queue triggers thatare set touse the default values. Similar tocustomizingindividualqueuetriggers,uponsaving,thenewdefaultvalueswillbe put into effectimmediately.35 +In this overview you can simply select a specific trigger to see the detailed configuration of the trigger. Depending on the type of trigger that you open the avaiable tabs within the pop-up and the information shown in the pop-up can differ. Below we show two distinct examples: 39 39 40 - === 3.2 CustomizeQueueAlerting===37 +[[image:Main.Images.Microlearning.WebHome@novice-alerting-linking-tags-to-triggers--example-trigger-detail-data-measurements.png]] 41 41 42 - Next to customizingthedefault valuesfor each queue triggers, you can also modify thetrigger configurations for individualqueues. To customize these queue triggersto better suit yourneeds, you can clickthe edit buttons (green paper and pencil buttons) located at the endof each queuetrigger. By doingso, you will get a pop-up pagethat allows you to further customize the conditions and thresholds of your queuetriggers, which will bediscussed inthe following.39 +[[image:Main.Images.Microlearning.WebHome@novice-alerting-linking-tags-to-triggers--example-trigger-detail-log-entry.png]] 43 43 44 -* **Consumers check** 45 -[[image:Main.Images.Microlearning.WebHome@novice-alerting-customize-queue-alerting-consumers-check-queue.png]] 41 +As you can see from these examples is that the number of tabs within the pop-up differ. The first tab is were the configuration of the trigger happens. In all the other tabs you need to link the tag(s) to the trigger. To do so simply press Add in one of these tabs, search for the Tag you want to link to this trigger, select it and press Select. 46 46 47 - {{info}}This trigger checks howmany processes (consumers)are subscribing to and retrievingmessagesfrom a particularqueueover thelast ten minutes. It evaluates whetherthenumber of consumers meets the specified threshold.If thenumberof consumers falls consistently **below** the "Expected consumers"value for a period of ten minutes, an alert is generated. Youcan customizethis thresholdas needed. Additionally, you can specify the instructions to be includedinemailnotificationssenttorecipientsand in thealertmessage displayed inthe Manage->Alerting->Alerts.{{/info}}43 +[[image:Main.Images.Microlearning.WebHome@novice-alerting-linking-tags-to-triggers--example-trigger-detail-no-tag.png]] 48 48 49 -* **Queue load check** 50 -[[image:Main.Images.Microlearning.WebHome@novice-alerting-customize-queue-alerting-queue-load-check.png]] 45 +[[image:Main.Images.Microlearning.WebHome@novice-alerting-linking-tags-to-triggers--example-trigger-detail-select-tag.png]] 51 51 52 - {{info}}This trigger checks howmany messagesare produced on a particular queue and not yet retrieved by any consumers over the last ten minutes.It evaluates whether the number of messageson the queueis below the specified threshold. If thenumber of messages is consistently **greater** thanthe "Max messages queued" value for a period of tenminutes, an alert isgenerated.You can customizethis threshold asneeded. Additionally, you can specify the instructions to beincluded in emailnotifications sent torecipients andinthe alert message displayedinthe Manage->Alerting->Alerts. It is important to note that if high burstsof messages occur regularly (e.g., during nightly batch processing, 1000 messages areexpected to be produced to a certain queue), then settinga higherthreshold(e.g., 1000 Max messages queued) can preventfalse-positivealerts caused by the default configuration.{{/info}}47 +[[image:Main.Images.Microlearning.WebHome@novice-alerting-linking-tags-to-triggers--example-trigger-detail-one-tag.png]] 53 53 54 -* **Inactivity check** 55 -[[image:Main.Images.Microlearning.WebHome@novice-alerting-customize-queue-alerting-inactivity-check.png]] 49 +When you are happy with your selection you can press Save on trigger level and eMagiz will link the tag to the trigger. 56 56 57 -{{info}}This trigger checks whether a particular queue receives at least one message regularly or within the specified time frame. With this trigger, you specify whether you want to 'always' have the check running everyday or only during a specified time range. If the queue receives a message within a specified time frame (i.e., time frame specified in the 'Expect a message every'), then the timer will reset and the next evaluation interval will start. Therefore, this trigger can produce two or more alerts a day if that setting is set to less than half a day. Similar to the other triggers, you can specify the instructions to be included in email notifications sent to recipients and in the alert message displayed in the Manage->Alerting->Alerts. 58 -* If you select the "Always" option, the next step is to configure the "Expect a message every" period. This is useful if you want to run the check every day and be notified when your queue has not received at least one message within a specified time frame, such as within an hour, a day or more. 59 -* If you select the "During time range" option, you can specify the days of the week and the starting time for the trigger to evaluate the queue. You will also need to specify the duration for which the trigger will evaluate and how frequently within that duration the queue should expect at least one message. Note that for this option, the "Expect a message every" setting must allow for at least two occurrences within the specified duration. 60 -* In the example above, the trigger is set to evaluate from Monday to Friday, 9:00 to 17:00, and expects a message every four hours, an alert will be sent if no message is received by 13:00. However, if a message is received at 11:00, then the timer resets, and the next check will be at 15:00. If no message is received by then, an alert will be sent. Consequently, due to the configuration of expects a message every four hours, and considering that there are only two hours left until the configured 17:00, the trigger for the remaining two hours will not be executed.{{/info}} 61 61 62 -* **Periodic activity check** 63 - [[image:Main.Images.Microlearning.WebHome@novice-alerting-customize-queue-alerting-periodic-activity-check.png]] 64 64 65 -{{info}}This trigger checks whether at least the specified number of messages is received during the specified interval. Similar to the others, you can also specify the instructions to be included in email notifications sent to recipients and in the alert message displayed in Manage->Alerting->Alerts. 66 -* If you enable this trigger, you must also specify the days of the week, the starting time, and the duration for the trigger to evaluate the queue. Additionally, you need to specify the minimum number of messages the queue is expected to receive. If this number is **not** reached, an alert will be generated. 67 -* Unlike the Inactivity check, this Periodic Activity check evaluates only at **the end of each interval** and does **not** reset the timer when the minimum number of messages is reached during the interval. This means that this trigger will not produce more than one alert per day. 68 -* In the example above, the trigger is set to evaluate from Monday to Friday, from 9:00 to 8:45 in the following morning, and expects a minimum of 100 messages within each interval. If the 100 messages are not received by that 8:45 in the next morning, an alert will be sent. Alternatively, if the 100 messages are reached, no alert will be generated for that interval, and the next check will start again at 9:00. For intervals starting on Friday, the next check will begin at 9:00 AM on Monday, as Saturday and Sunday are not included.{{/info}} 53 +== 4. Assignment == 69 69 70 -Upon saving, these custom values will apply immediately, putting the new check into effect. Additionally, you will notice that the "Settings" status of the queue trigger you just customized has changed from "Default" to "Custom". 55 +Link an (extra) tag to a trigger. 56 +This assignment can be completed with the help of the (Academy) project that you have created/used in the previous assignment. 71 71 72 -== 4. Key takeaways ==58 +== 5. Key takeaways == 73 73 74 -* Queue alerting involves setting triggers for all queues in your model, which can be customized for individual queues or modified as default values. 75 -* eMagiz provides four queue trigger options: Consumers Check (monitoring the number of processes consuming messages), Queue Load Check (monitoring the number of queued messages), Inactivity Check (ensuring regular received message), and Periodic Activity Check (ensuring a minimum number of messages within a specified interval). 76 -* If you want to learn more on how to configure the recipients for the alerts generated from these queue triggers, please check out [[Setting up notification>>doc:Main.eMagiz Academy.Microlearnings.Intermediate Level.Alerting.intermediate-alerting-setting-up-notifications-gen3||target="blank"]]. 60 +* Assist in creating a common language 61 +* Make tags descriptive in nature 62 +* Re-use tags over multiple triggers that have the same aim 63 +* In case of a start, daily and end alert use the same tag for all of them 77 77 78 -== 5. Suggested Additional Readings == 79 79 80 -If you are interested in this topic and want more information, please read the help text provided by eMagiz and read the following microlearning. 81 -* [[Setting up notification>>doc:Main.eMagiz Academy.Microlearnings.Intermediate Level.Alerting.intermediate-alerting-setting-up-notifications-gen3||target="blank"]] 82 -* [[Standard Alerting eMagiz>>doc:Main.eMagiz Academy.Microlearnings.Crash Course.Crash Course Platform.crashcourse-platform-manage-alerting-gen3||target="blank"]] 66 + 67 +== 6. Suggested Additional Readings == 68 + 69 +If you are interested in this topic and want more information on it please read the help text provided by eMagiz. 70 + 71 +== 7. Silent demonstration video == 72 + 73 +This video demonstrates how you could have handled the assignment and gives you some context on what you have just learned. 74 + 75 +{{video attachment="novice-alerting-linking-tags-to-triggers.mp4" reference="Main.Videos.Microlearning.WebHome"/}} 76 + 83 83 )))((({{toc/}}))){{/container}}{{/container}}
- novice-alerting-linking-tags-to-triggers--example-trigger-detail-one-tag.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.ebakker - Size
-
... ... @@ -1,0 +1,1 @@ 1 +9.1 KB - Content
- novice-alerting-linking-tags-to-triggers--example-trigger-detail-select-tag.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.ebakker - Size
-
... ... @@ -1,0 +1,1 @@ 1 +11.7 KB - Content