File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 77
77
78
78
echo " publishing metric for heap utilization (value=$METRIC_VALUE )"
79
79
80
+ aws cloudwatch put-metric-data --metric-name $METRIC_NAME --namespace JVM --value $METRIC_VALUE --region eu-central-1 --dimensions " InstanceId=${INSTANCE_ID} " --unit $METRIC_UNIT --timestamp ` date --utc +%FT%TZ`
81
+ elif [ $stat = " survivorUtil" ]
82
+ then
83
+ # S0U+S1U+EU+OU
84
+ METRIC_NAME=" JVMSurvivorSpaceUtilization"
85
+ METRIC_UNIT=" Kilobytes"
86
+
87
+ S0U_VALUE=` get_stat_value " s0u" `
88
+ S1U_VALUE=` get_stat_value " s1u" `
89
+
90
+ METRIC_VALUE=$( awk ' {printf "%.0f", $1+$2}' <<< " $S0U_VALUE $S1U_VALUE" )
91
+
92
+ echo " publishing metric for survivor space utilization (value=$METRIC_VALUE )"
93
+
80
94
aws cloudwatch put-metric-data --metric-name $METRIC_NAME --namespace JVM --value $METRIC_VALUE --region eu-central-1 --dimensions " InstanceId=${INSTANCE_ID} " --unit $METRIC_UNIT --timestamp ` date --utc +%FT%TZ`
81
95
elif [ $stat = " capacity" ]
82
96
then
You can’t perform that action at this time.
0 commit comments