20 Nov 2023 09:11 AM
Dear Community,
I want to open discussion,
What is the best way to set a metric event for a pecific service/request:
Example: sent email if the count of the service A is above 500 in the last 1 Hour.
20 Nov 2023 09:17 AM
In general, it depends very much on the specific environment and the requirements for the metric.
To give two examples:
At one of my clients, when Azure monitoring metrics are exceeded (without OA), SMS messages are sent via Webhook and SMS gateway to the relevant administrators.
In another, when OA usage metrics are exceeded, a ticket is created in Kira and a simple script is run via webhook to clear the RAM.
*Care must also be taken to ensure that the sliding window is not too short, as any slowdown in data transfer from the OA to the DT server can cause false problems.
20 Nov 2023 10:12 AM - edited 20 Nov 2023 10:14 AM
Hello @Malaik
Normally I might go with something like this.
set threshold as 500 violate 1 time during the sliding window of 60min (not sure 60 dealerting will help here)
Thanks
RN
22 Nov 2023 08:41 AM
Thanks,
But Im not sure that the suggested solution will work.
What i want is not that this threshold (500) was met 1 time in 60mn but I want the count of that metric in 60mn will not exceed 500.
may but 1 time 200 and second time 400, in that case i should raise alert which will not work with that solution
21 Nov 2023 01:18 PM
All great replies, and just to echo some of the main points, it really depends on the number of samples in that time frame. So you said 1 hour (60 Mins) so the next question is how many times should this occur in 60 mins that would then trigger you to take action? too low gives you too many alerts, too high gives you to little alerts.
22 Nov 2023 08:41 AM
Thanks Chad,
But Im not sure that the suggested solution will work.
What i want is not that this threshold (500) was met 1 time in 60mn but I want the count of that metric in 60mn will not exceed 500.
may but 1 time 200 and second time 400, in that case i should raise alert which will not work with that solution
13 Aug 2024 10:58 AM
Hi @Malaik
Have you managed to solve the problem? It would be great if you shared the solution with the Community users 💡