Translations with OpenTelemetry 0.7.0 format in CloudWatch
CloudWatch performs some transformations to put CloudWatch data into OpenTelemetry format.
Translating namespace, metric name, and dimensions
These attributes are key-value pairs encoded in the mapping.
One pair contains the namespace of the metric
One pair contains the name of the metric
For each dimension, CloudWatch stores the following pair:
metricDatum.Dimensions[i].Name, metricDatum.Dimensions[i].Value
Translating Average, Sum, SampleCount, Min and Max
The Summary datapoint enables CloudWatch to export all of these statistics using one datapoint.
startTimeUnixNanocontains the CloudWatchstartTimetimeUnixNanocontains the CloudWatchendTimesumcontains the Sum statistic.countcontains the SampleCount statistic.quantile_valuescontains twovalueAtQuantile.valueobjects:valueAtQuantile.quantile = 0.0withvalueAtQuantile.value =Min valuevalueAtQuantile.quantile = 0.99withvalueAtQuantile.value =p99 valuevalueAtQuantile.quantile = 0.999withvalueAtQuantile.value =p99.9 valuevalueAtQuantile.quantile = 1.0withvalueAtQuantile.value =Max value
Resources that consume the metric stream can calculate the Average statistic as Sum/SampleCount.
Translating units
CloudWatch units are mapped to the case-sensitive variant of the Unified code for
Units of Measure, as shown in the following table.
For more information,
see The Unified Code For Units of Measure
| CloudWatch | OpenTelemetry |
|---|---|
|
Second |
s |
|
Second or Seconds |
s |
|
Microsecond |
us |
|
Milliseconds |
ms |
|
Bytes |
By |
|
Kilobytes |
kBy |
|
Megabytes |
MBy |
|
Gigabytes |
GBy |
|
Terabytes |
TBy |
|
Bits |
bit |
|
Kilobits |
kbit |
|
Megabits |
MBit |
|
Gigabits |
GBit |
|
Terabits |
Tbit |
|
Percent |
% |
|
Count |
{Count} |
|
None |
1 |
Units that are combined with a slash are mapped by applying the OpenTelemetry conversion of both the units. For example, Bytes/Second is mapped to By/s.