Tech Tip: Export metrics to CSV for APM Capacity manager

Document created by Duane_Nielsen Employee on Jan 26, 2016Last modified by Melissa Potvin on Feb 22, 2016
Version 2Show Document
  • View in full screen mode

HOST=localhost

PORT=5001

USER=admin

PASSWORD=

FROM_DATE=`date +"%Y-%m-%d %H:%M" -d yesterday`

TO_DATE=`date +"%Y-%m-%d %H:%M"`

 

AGENTS="(.*)"

 

 

../jre/bin/java -Dhost=${HOST} -Dport=${PORT} -Duser=${USER} -Dpassword=${PASSWORD} -jar CLWorkstation.jar get historical data from agents matching "Custom.*Business Application.*" and metrics matching "By Business Service\|([^|]*)\|(.*):(Average Response Time \(ms\)|Responses Per Interval)" between $FROM_DATE and $TO_DATE with frequency of 900 seconds > apm_workload_metrics.csv

 

../jre/bin/java -Dhost=${HOST} -Dport=${PORT} -Duser=${USER} -Dpassword=${PASSWORD} -jar CLWorkstation.jar get historical data from agents matching $AGENTS and metrics matching "CPU(.*)" between $FROM_DATE and $TO_DATE with frequency of 900 seconds > apm_cpu_metrics.csv

 

 

../jre/bin/java -Dhost=${HOST} -Dport=${PORT} -Duser=${USER} -Dpassword=${PASSWORD} -jar CLWorkstation.jar get historical data from agents matching $AGENTS and metrics matching "GC Heap(.*)" between $FROM_DATE and $TO_DATE with frequency of 900 seconds > apm_mem_metrics.csv

Attachments

    Outcomes