cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Calculated Service Metric - Number of times a method is called

jeff_tucker
Helper

Can someone provide me with the steps to create a CSM that captures the number of times a particular method is called in a request to a service?  I have tried creating a Request Attribute that is scoped to the method (info() logging method) and I have tried using the Occurrences metric but it does not give me the number of info() method calls.  Instead it gives me the number of requests that contained at least one info() method call.  I need to capture the number of times the method is actually called.   

 

Thank you. 

 

JT 

3 REPLIES 3

ChadTurner
DynaMight Legend
DynaMight Legend

You would want to use the multidimensional analysis charts and set up something like this I would assume: 

 

ChadTurner_0-1635534657643.png

 

-Chad

Malaik
DynaMight Champion
DynaMight Champion

Hello @ChadTurner

 

Im in the same case,

 

The trouble is that the maximum is 100 different dimensions.

 

Have a good day.

Sharing Knowledge

henk_stobbe
DynaMight Champion
DynaMight Champion

Hello Jeff,

 

Readinng the documentarion, I think it is a count of all attributes from all info() method calls?

 

So the result is correct if only one method call returns one value.

 

Counting invocations was possible in the "old" appmon tool, but I think it is missing in Dynatrace )-;

 

KR Henk

Featured Posts