Click the Start a free trial link to start a 15-day SaaS trial of our product and join our community as a trial user. If you are an existing customer do not start a free trial.
AppDynamics customers and established members should click the sign in button to authenticate.
on
01-08-2019
04:26 PM
- edited on
10-15-2021
09:19 PM
by
Claudia.Landiva
The Java Extension SDK provides an automated utility that allows extensions developers to transform a metric name and value as it would be represented in the Metric Browser. These transformers include the Alias, the Multiplier, the Delta, and the Convert.
In the metrics.xml
, the transformers should be specified in the following manner.
<stat url="/nitro/v1/stat/lbvserver" rootElement="lbvserver" alias="Load Balancing Server Metrics"> <metric attr="cursrvrconnections" alias="Server Connections"/> <metric attr="memoryInMBytes" alias="Memory in KB" multiplier="1000"/> <metric attr="throughput" delta="true" /> <metric attr="state"> <convert str="DOWN" value="0"/> <convert str="UP" value="1"/> <convert str="UNKNOWN" value="2"/> </metric> </stat>
In the config.yml
, the transformers should be specified in the following manner.
metrics: - name: “cursrvrconnections” alias: “Cursor RV Connections” delta: true multiplier: 1000 convert: “DOWN”: 0 “UP”: 1 “UNKNOWN”: 2
Note that multiple transformers can be applied to the same metric as follows:
<metric attr="cursrvrconnections" alias="Server Connections" multiplier="10" delta="true"/>
Please note the following:
On calling transformAndPrintMetrics(List<Metric> metrics)
in com.appdynamics.extensions.MetricWriteHelper
, the SDK automatically applies any configured transformers before publishing these metrics.
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form