question

Hari G. avatar image
Hari G. asked ·

How to add Host Name to email subject or email body using Dynatrace default email plugin

We have created custom High GC time alerts for specific process, while sending alerts this is not showing any host name to the specific process. But our client wants Host name also for High GC time alerts. We couldn't found any placeholders for Host name in default email plugin. Is there any way to achieve this, please respond as soon as possible.

alertingextensionshost monitoringproblem detection
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.

Chad T. avatar image
Chad T. answered ·

@Hari G. Dynatrace did a great use case on how to put in a solution to this question.

More Effective AI to Human Interactions with Dynatrace DAVIS at NYCM

keep in mind, this use case is a tad different compiared to what you are asking, but the method of renaming things to provide a better understanding of the issues is still a viable solution.

Let me know if you need any other assistance!

-Chad

5 comments 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.

Thanks for your response, it will be useful, but again we are getting one issue. While adding custom process group name rules, one process group will available in multiple hosts. Because of that we are getting multiple host names, then will get confusion, which host is throwing an problem. Can you tell me how can we differentiate this process group with specific hosts.

0 Likes 0 · ·
1576484463887.png (18.4 KiB)

@Hari G., So we do have a solution for that. What you can so it set the names dynamically. If you are in the process or service level setting the new name, you can define the inclusion of the host name dynamically. Without understanding your environment (VMware Hosts, Azure, AWS, Etc..) it will be hard to give you the correct parameters but this is the method we would use:

From the Image you can see that I have statically put in "Process:" and "on" within the naming convention. Everything in the {Braces} are dynamic and will display the information appropriately. For Example, Lets say we have 4 Hosts that run Wordpress, all in the same process group. Problem tickets will reflect: Failure rate increase on " Process: WordPress on Host 1"

This will allow staff to see the core data without having to dig deeper and deeper.

Let me know if you have any questions!

-Chad

If you feel that this answer is a Quality Answer to your question, please feel free to mark it as the "Best Answer" as well as reward the user who provided it by clicking "Reward User"

3 Likes 3 · ·
host-names.png (8.3 KiB)

Hi Chad,

In our scenario, we configured custom alerts for High GC time. For that we are getting two host names for One Process group. we configured emails through default email plugin, then we are getting email with two host names. Then we are getting confusion, which host is throwing this error.we wants more specific like One process group name with one host name not too many. please help on this.

0 Likes 0 · ·
1576570237758.png (10.5 KiB)

Hi Chad,

Could you please respond as soon as possible.

0 Likes 0 · ·

Hari,

I have been trying to create the same thing in my environment to reflect the issue that you are having but each time we get an alert that pin points the exact server and group. Without having access to your tenant and checking the alert profiles and integration its going to almost be impossible to determine where the issue is. I would recommend starting a Chat with Dynatrace Support on this as they will be able to access the tenant with you.

2 Likes 2 · ·
Julius L. avatar image
Julius L. answered ·

Unfortunately, this does seem to be possible right now using the default email plugin. A good idea for improvement by adding additional placeholders and being able to specify email body as well.

5 comments 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.

Right now - if this is a matter of time - I would recommend to use the webhook integration in Dynatrace and writing a simple rest webservice that would accept the JSON payload and send emails (if you are running on premise) or using a cloud based rest to email service.

0 Likes 0 · ·

Thanks for your quick response. Can you please share Rest webservice and JSON file as i am new to dynatrace. i don't have much knowledge about writing a JSON file.

0 Likes 0 · ·

Plz respond any one

0 Likes 0 · ·

Are you on Dynatrace SaaS or Dynatrace Managed (on premise)?

0 Likes 0 · ·

We are using Dynatrace SaaS in our premises.

0 Likes 0 · ·