28 Apr 2021 03:55 AM - last edited on 30 Jun 2021 06:21 AM by MaciejNeumann
We have a service that is called by a dozen consumers all of which are monitored by Dynatrace. I am trying to find a way to get the count of service calls done by each service consumer. I have got as far as setting up the REST API query below however I cannot seem to find any way to group the results by the ClientIP or client host name. Please can someone assist?
Solved! Go to Solution.
Currently, I do not believe there is an out of the box way to do this.
This could be possible if you created a request attribute, capturing either client IP address, a request or response header (if the source or service is tracked in a header), or some other Java/.NET method parameter (again, if this is available in the code).
Next, you would want to create a calculated service metric around this value that you captured for you to split by, the metric should be request count based.
Then you would want to use the metrics api to query the new metric you created. This does consume DDUs (0.001 * splittings * services that this metric applies to * frequency). There are options when creating this type of metric to isolate it to a group or single service.