Hi everyone,
Let me start by clarifying (if this was not clear from the title) that this is not a question, but rather sharing my experience in making an unmonitored host become part of the smartscape and even divided into services.
We have run into a situation in which a customer hosts his site on AWS and is initiating calls to his own internal SAP system to retrieve and update data. As he only installed dynatrace on AWS, the SAP servers were included in the unmonitored hosts.
So I’ve searched the forums and found this post. following you’ll find the steps I’ve taken to achieve an end result in which I can see SAP transaction calls as follows:
As a preparation make sure you have the following:
- API Token from your dynatrace server
- The IP ADDRESS of the host not being monitored and even ports
- Your favorite rest tool, mine was postman
Since I know I may need to run some additional calls to this server, I’ve defined in postman an environment and in that created my variables for the environment id and the token. (this has been demonstrated in one of the recent webinars, but as there are so many of them - definitely not a complaint - I couldn’t find the right one to link here)
Now let’s get to work.
The first thing we need to do is create a POST call to https://{{Env ID}}.live.dynatrace.com/api/v1/entity/infrastructure/custom/MYCUSTOMDEVICENAME. (everything within the double curly brackets is the postman variable which will be replace in the real value on runtime)
in order for this call to work you need the following request headers:
- Authorization - which will include your token in the form of Api-Token {{Env Token}}
- Content-Type - with the value of application/json
Then, we’re off to the JSON content that described the host. There are a lot of values you can add to describe your host. To make this clear here are the minimum values I needed:
{<br> "displayName" : "name you want to appear on your smartscape and display",<br> "ipAddresses" : ["HOST IP"],<br> "listenPorts" : ["PORT1","PORT2"],<br> "type" : "CAN ACTUALLY BE ANYTHING",<br>}
Now go ahead and run your call. If everything goes well, your returned status should be 200 - ok.
Once the device is done, your next step is just to sit back and relax. from this point on Dynatrace automatically created a service for each port and allowed us to present it nicely, monitor, chart and even add our own request naming rules to make it appear as you’ve seen above.
Obviously you could take this even further and create custom services and even add some metrics and tags to the hosts, but one task at a time.
Hope this will help you all until we get the RFE implemented.
