View a markdown version of this page

MetricMetadata - Amazon CloudWatch Omni

MetricMetadata

A single metric observed on a context graph node.

Contents

attributes

Per-metric qualifying attributes used to query this metric's telemetry. Keys are the metric store's own label names, not bare OTel attribute names: service identity arrives as "@resource.service.name" and "@resource.service.namespace", and the instrumentation scope as "@instrumentation.@name", while span-derived metrics label the service as a bare "service.name". Cloud provider, account and region are not repeated per metric — read those from the node. Values are RAW, deliberately NOT the node's normalized or merged identity, so a selector built from them matches the emitted series. A merged node can carry different values per metric, which is why these live here rather than on the node.

Type: String to string map

Map Entries: Minimum number of 0 items. Maximum number of 50 items.

Required: No

metricType

OTel metric kind: "gauge", "sum", "histogram", "exponential_histogram", or "summary" (CloudWatch-vended metrics carry the same kinds). Absent when the producer did not report one.

Type: String

Required: No

name

The metric name as emitted, such as "Duration".

Type: String

Required: No

preferredStat

The statistic to chart or alarm on, such as "p99" or "Sum". Free-form and frequently absent.

Type: String

Required: No

semantics

What the metric means and the unit it is reported in.

Type: MetricSemantics object

Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: