Translations with OpenTelemetry 1.0.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 attribute has the key
Namespaceand its value is the namespace of the metricOne attribute has the key
MetricNameand its value is the name of the metricOne pair has the key
Dimensionsand its value is a nested list of key-value pairs. Each pair in this list maps to a CloudWatch metric dimension, where the pair's key is the name of the dimension and its value is the value of the dimension.
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 |
|
Microseconds |
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.