在尝试使用get_metric_statistics
我的一些 EBS 卷查询“卷写入字节”指标时,我得到了一些奇怪的结果。我想知道是否有人可以帮助我理解我从 AWS 得到的响应,为了这篇文章的目的,请考虑到实际的卷 ID 已更改为“vol-1234”。
{"Cloudwatch Args"=>{:namespace=>"AWS/EBS", :metric_name=>"VolumeWriteBytes", :dimensions=>[{:name=>"VolumeId", :value=>"vol-1234"}], :start_time=>2020-01-06 12:41:58 UTC, :end_time=>2020-01-06 15:41:
58 UTC, :period=>300, :statistics=>["Average", "Minimum", "Maximum"]}, :account=>11, :region=>"us-east-1"}
HTTP POST (152.32ms) https://monitoring.us-east-1.amazonaws.com:443/
Response status Net::HTTPOK (200)
Response body <impossible to log>
=> [#<struct Aws::CloudWatch::Types::Datapoint timestamp=2020-01-06 13:56:00 UTC, sample_count=nil, average=4767.288888888889, sum=nil, minimum=0.0, maximum=0.0, unit="Bytes", extended_statistics={}>,
#<struct Aws::CloudWatch::Types::Datapoint timestamp=2020-01-06 13:21:00 UTC, sample_count=nil, average=5512.661654135339, sum=nil, minimum=0.0, maximum=0.0, unit="Bytes", extended_statistics={}>,
#<struct Aws::CloudWatch::Types::Datapoint timestamp=2020-01-06 15:06:00 UTC, sample_count=nil, average=5371.133079847908, sum=nil, minimum=0.0, maximum=0.0, unit="Bytes", extended_statistics={}>,
...
有人可以解释为什么平均值似乎在 4-5k 左右,而最大值和最小值是 0.0 吗?这似乎发生在多个卷上,这不是一个孤立的案例。