Cloudwatch 中的 VPN 指标
VPN metrics in Cloudwatch
最近我在 Cloudwatch 中配置了 ALARM 以跟踪 VPN 隧道连接。众所周知,0 表示隧道 DOWN,1 表示隧道 UP。当 Connection 关闭时,我看到图表上的一些数据点显示为 0.66、0.75。
那么这是什么意思,连接是断开还是接通?
如果您的图表显示平均值(这就是为什么您的两个值都在 1 和 0 之间),就会发生这种情况。在 ClouWatch 控制台中 select 您的指标,然后单击图表指标选项卡。在那里您会看到 Statistics
列,现在最有可能设置为 Average
。
每个指标的正确统计数据取决于您的用例和底层指标。
来自CloudWatch Concepts - Statistics
Statistics are metric data aggregations over specified periods of
time. CloudWatch provides statistics based on the metric data points
provided by your custom data or provided by other AWS services to
CloudWatch. Aggregations are made using the namespace, metric name,
dimensions, and the data point unit of measure, within the time period
you specify. The following table describes the available statistics.
鉴于上述 VPN 指标,请尝试使用 Maximum
或 Minimum
警报统计信息。您正在使用 Average 统计数据,正如您所指出的,它不会为您的用例生成有意义的数据。
- 最小值
在指定时间段内观察到的最低值。您可以使用此值来确定应用程序的低容量 activity。
- 最大
在指定时间段内观察到的最高值。您可以使用此值来确定应用程序的高容量 activity。
最近我在 Cloudwatch 中配置了 ALARM 以跟踪 VPN 隧道连接。众所周知,0 表示隧道 DOWN,1 表示隧道 UP。当 Connection 关闭时,我看到图表上的一些数据点显示为 0.66、0.75。
那么这是什么意思,连接是断开还是接通?
如果您的图表显示平均值(这就是为什么您的两个值都在 1 和 0 之间),就会发生这种情况。在 ClouWatch 控制台中 select 您的指标,然后单击图表指标选项卡。在那里您会看到 Statistics
列,现在最有可能设置为 Average
。
每个指标的正确统计数据取决于您的用例和底层指标。
来自CloudWatch Concepts - Statistics
Statistics are metric data aggregations over specified periods of time. CloudWatch provides statistics based on the metric data points provided by your custom data or provided by other AWS services to CloudWatch. Aggregations are made using the namespace, metric name, dimensions, and the data point unit of measure, within the time period you specify. The following table describes the available statistics.
鉴于上述 VPN 指标,请尝试使用 Maximum
或 Minimum
警报统计信息。您正在使用 Average 统计数据,正如您所指出的,它不会为您的用例生成有意义的数据。
- 最小值
在指定时间段内观察到的最低值。您可以使用此值来确定应用程序的低容量 activity。 - 最大
在指定时间段内观察到的最高值。您可以使用此值来确定应用程序的高容量 activity。