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

How to create custom metrics in AppDynamics by powershell script?

Hello,

 

The issue is to create custom metric in metrics browser which allows to monitor AWS healthcheck but the most important thing is to create this custom metric by powershell script?

 

Thank you in advance.

 

Also, information about creating and updating custom metrics in AppDynamics by Powershell will be helpful.

1 REPLY 1

Raunak.Mohanty
AppDynamics Team (Retired)

Hi,

 

  Are you Java Machine Agent or .Net Extension Manager to reoport Custom Metric ?

In case of Java Machine Agent using https://docs.appdynamics.com/display/PRO43/Build+a+Monitoring+Extension+Using+Scripts

Then we just to make sure the output to std out is in format

name=<metric name>,value=<long value>,aggregator=<aggregator type>, time-rollup=<time-rollup strategy>, cluster-rollup=<cluster-rollup strategy>

 you can just use PowerShell's write-host to send it to std out

 

In case you are using .Net Extension Manager you can use following extension

https://www.appdynamics.com/community/exchange/windows-script-monitor/

write-host "metric1 | instance1 , value = $Value";


Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.
On-Demand Webinar
Discover new Splunk integrations and AI innovations for Cisco AppDynamics.


Register Now!

Observe and Explore
Dive into our Community Blog for the Latest Insights and Updates!


Read the blog here
Top Kudoed Authors