question

Jeff R. avatar image
Jeff R. asked ·

How can we implement custom alerts that are based on process metrics for specific instances?

We would like to implement a custom alert rule to detect high memory usage in a a given process (e.g., a specific NGINX process). I am not totally clear, however, whether the metric value aggregation used in the rule would be based on (split by) each process group instance or for all instances in the process group. I fear that the latter is the case, but would like to have this confirmed. A memory usage alert should of course be related to a specific process instance, but I am not clear if that is the result we would get.

Also, I can anyone tell me why metric names shown in the Dashboard configuration screen are different than those (in some cases) shown in the Alert configuration screen? For example, in the dashboard we see a "Technologies->Generic->Process Memory" metric while in the alert configuration screen we see "Technologies->Generic->Memory->WorkingSetSize".... both show up as "Process Memory" when selected... whether they are the same thing, and why they are named differently if they are the same is not clear to me.

configurationalertingNGINX
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Sebastian K. avatar image
Sebastian K. answered ·

When problem will show up you will see particular process instance affected.
about second question, process memory is whole memory collected by process. For Java for example it is heap and no heap memory together. About this second metric I’m not sure.

sebastian

1 comment Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

OK that is good to know, thanks. The reason I suspected that the threshold would be evaluated against the average of ALL instances, rather than individually, is that the Dynatrace GUI shows a graphic, when you configure a custom alert, in which you can view the metric and whether alerts would be generated for specific thresholds... this graphic shows only a single AVG value despite the fact that the rule is based on a process group name that has 2 instances in it.

0 Likes 0 · ·
Wolfgang B. avatar image
Wolfgang B. answered ·

In some cases the metric names are different, we are aware of that and will soon switch all UIs to the consistent names shown in the custom chart metric picker or the custom events metric picker.

Best greetings,

Wolfgang

Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Space Topics