1 Respuesta
- Más nuevo
- Más votos
- Más comentarios
0
Hi, according to the definition in the CloudWatch documentation below, they are actually representing a different view of the metric.
- SampleCount is the number of data points during the period.
- Sum is the sum of the values of the all data points collected during the period.
https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html
From your example, Sum would be 4 but SampleCount would be 7 since it's counting the number of data points. Please note that the log message that doesn't match with the filter pattern will also generate a data point with value "0" (Based on the Default Value setting) to the corresponding metric. Therefore, in your example, there are 7 data points, 4 with value "1" and 3 with value "0". The Sum is calculated by 1+1+1+1+0+0+0 = 4.
Hope my explanation helps!
respondido hace 3 días
Contenido relevante
- OFICIAL DE AWSActualizada hace 2 años
- OFICIAL DE AWSActualizada hace 3 años
- OFICIAL DE AWSActualizada hace 2 años
- OFICIAL DE AWSActualizada hace 2 años