Can anyone explain how to use the AWS PHP SDK to log the metric in the style like the above screen.
I use the following PHP code but the select menu is showing "ELB: AvaliabiltyZone", how to make it show "Aggregated by AvaliabiltyZone"? What is the logic used here?
$response = $cw->put_metric_data("ELB", array(
array(
"MetricName" => "Latency",
"Dimensions" => array(
array("Name" => "AvaliabiltyZone" , "Value" => "us-east-1c")
),
"Timestamp" => "now",
"Value" => 1,
"Unit" => "None"
),
));
A dimension is a name/value pair that is part of the identity of a metric. You can assign up to 30 dimensions to a metric. Every metric has specific characteristics that describe it, and you can think of dimensions as categories for those characteristics. Dimensions help you design a structure for your statistics plan.
A CloudWatch Alarm is always in one of three states: OK, ALARM, or INSUFFICIENT_DATA.
To create a metric filter using the CloudWatch consoleIn the navigation pane, choose Logs, and then choose Log groups. Choose the name of the log group. Choose Actions , and then choose Create metric filter. For Filter pattern, enter a filter pattern.
AWS CloudWatch works by collecting all the events data, metrics, and logs generated by the applications running inside the AWS ecosystem. The difference between CloudWatch metrics vs. CloudWatch logs is that metrics measure a certain point in time for the system. Whereas, logs are related to a specific event.
AvaliabiltyZone
You misspelled "AvailabilityZone"
This maybe won't answer the question, but it might fix some things...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With