Get Metric Data
appd_get_metric_dataQuery any AppDynamics metric by providing the metric path and application; returns time-series data with min, max, avg, count, and sum.
Instructions
Query any metric from the AppDynamics metric tree.
This is a generic tool that can retrieve any metric — infrastructure (CPU, memory, disk), application performance, custom metrics, etc.
Use appd_browse_metric_tree to discover available metric paths first.
Custom metrics: Machine agent custom metrics are stored per-node, not aggregated at tier level. To query them, use rollup=false and a node-level path: 'Application Infrastructure Performance|{Tier}|Individual Nodes|{Node}|Custom Metrics|{MetricName}' Wildcard example: 'Application Infrastructure Performance||Individual Nodes||Custom Metrics|MyMetric' with rollup=false
Args:
application (string|number): App name or ID
metricPath (string): Full metric path (pipe-separated)
durationInMins (number, optional): Lookback in minutes (default: 60)
rollup (boolean, optional): Aggregate across entities (default: true). Set false for custom/per-node metrics.
Returns: Array of metric data objects with timestamps, min, max, avg, count, sum values.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rollup | No | Whether to aggregate (roll up) metric data across all entities matching the path. Default true (aggregated). Set to false for custom metrics or per-node metrics — custom metrics live at node level and return empty data when rolled up. | |
| metricPath | Yes | The metric path to query. Use appd_browse_metric_tree to discover available paths. Examples: 'Overall Application Performance|Average Response Time (ms)', 'Application Infrastructure Performance|*|Hardware Resources|CPU|%Busy'. For custom metrics use: 'Application Infrastructure Performance|{Tier}|Individual Nodes|{Node}|Custom Metrics|{MetricName}'. | |
| application | Yes | Application name or numeric ID. | |
| durationInMins | No | Time range in minutes to look back. Defaults to 60. |