2026/11/27 - Amazon CloudWatch - 3 updated api methods
Changes CloudWatch OTel enrichment supports a free basic option and a paid tag enrichment option, using the EnableTagEnrichment flag. Set it to true (default) to enrich vended metrics with resource ARN and tag labels for PromQL queries. Set it to false to get the free basic option without resource tags.
{'EnableTagEnrichment': 'boolean'}
Returns the current status of vended metric enrichment for the account, including whether CloudWatch vended metrics are enriched with resource ARN and resource tag labels and queryable using PromQL. For the list of supported resources, see Supported Amazon Web Services infrastructure metrics.
See also: AWS API Documentation
Request Syntax
client.get_o_tel_enrichment()
dict
Response Syntax
{
'Status': 'Running'|'Stopped',
'IncludeFilters': [
{
'Namespace': 'string',
'MetricNames': [
'string',
]
},
],
'ExcludeFilters': [
{
'Namespace': 'string',
'MetricNames': [
'string',
]
},
],
'CreatedAt': datetime(2015, 1, 1),
'UpdatedAt': datetime(2015, 1, 1),
'EnableTagEnrichment': True|False
}
Response Structure
(dict) --
Status (string) --
The status of OTel enrichment for the account. Valid values are Running (enrichment is enabled) and Stopped (enrichment is disabled).
IncludeFilters (list) --
The metric namespaces, and the metric names, that are enriched. This parameter is omitted when enrichment is stopped, and when enrichment is running with no include filters, which means that every supported namespace is in scope.
(dict) --
Selects the metrics in one namespace, for use in the IncludeFilters or ExcludeFilters parameter of StartOTelEnrichment or UpdateOTelEnrichment.
A maximum of 100 selectors is allowed across IncludeFilters and ExcludeFilters combined.
Namespace (string) --
The namespace of the metrics to select. Namespaces are matched exactly and are case-sensitive.
MetricNames (list) --
The names of the metrics to select within the namespace. Metric names are matched exactly and are case-sensitive. If this parameter is omitted, every metric in the namespace is selected.
A maximum of 100 metric names is allowed for each selector.
(string) --
ExcludeFilters (list) --
The metric namespaces, and the metric names, that are left unenriched. This parameter is omitted when enrichment is stopped, and when enrichment is running with no exclude filters, which means that nothing is excluded.
(dict) --
Selects the metrics in one namespace, for use in the IncludeFilters or ExcludeFilters parameter of StartOTelEnrichment or UpdateOTelEnrichment.
A maximum of 100 selectors is allowed across IncludeFilters and ExcludeFilters combined.
Namespace (string) --
The namespace of the metrics to select. Namespaces are matched exactly and are case-sensitive.
MetricNames (list) --
The names of the metrics to select within the namespace. Metric names are matched exactly and are case-sensitive. If this parameter is omitted, every metric in the namespace is selected.
A maximum of 100 metric names is allowed for each selector.
(string) --
CreatedAt (datetime) --
The date and time that enrichment started for the account. This parameter is omitted when enrichment is stopped.
UpdatedAt (datetime) --
The date and time that the enrichment configuration for the account was last stored.
EnableTagEnrichment (boolean) --
Specifies whether enriched metrics include resource tag labels for the account. This parameter is omitted when enrichment is stopped.
{'EnableTagEnrichment': 'boolean'}
Enables enrichment and PromQL access for CloudWatch vended metrics for supported Amazon Web Services resources in the account. Once enabled, metrics that contain a resource identifier dimension (for example, EC2 CPUUtilization with an InstanceId dimension) are enriched with resource ARN labels and, optionally, resource tag labels, and become queryable using PromQL.
To include resource tag labels, you must also enable resource tags on telemetry for the account. For more information, see Enable resource tags on telemetry. If EnableTagEnrichment is false, enrichment reads no resource tags, so it does not require resource tags on telemetry.
Optionally, IncludeFilters and ExcludeFilters limit enrichment to a subset of the account's metrics, and EnableTagEnrichment controls whether enriched metrics include resource tag labels. These settings are stored only when this operation starts enrichment. Calling StartOTelEnrichment for an account where enrichment is already running has no effect and does not modify the filters or the tag enrichment setting that are applied. To change them, use UpdateOTelEnrichment.
See also: AWS API Documentation
Request Syntax
client.start_o_tel_enrichment(
IncludeFilters=[
{
'Namespace': 'string',
'MetricNames': [
'string',
]
},
],
ExcludeFilters=[
{
'Namespace': 'string',
'MetricNames': [
'string',
]
},
],
EnableTagEnrichment=True|False
)
list
The metric namespaces, and the metric names, to enrich. If this parameter is omitted, every namespace that Amazon CloudWatch supports for enrichment is in scope.
A maximum of 100 filters is allowed across IncludeFilters and ExcludeFilters combined.
(dict) --
Selects the metrics in one namespace, for use in the IncludeFilters or ExcludeFilters parameter of StartOTelEnrichment or UpdateOTelEnrichment.
A maximum of 100 selectors is allowed across IncludeFilters and ExcludeFilters combined.
Namespace (string) -- [REQUIRED]
The namespace of the metrics to select. Namespaces are matched exactly and are case-sensitive.
MetricNames (list) --
The names of the metrics to select within the namespace. Metric names are matched exactly and are case-sensitive. If this parameter is omitted, every metric in the namespace is selected.
A maximum of 100 metric names is allowed for each selector.
(string) --
list
The metric namespaces, and the metric names, to leave unenriched. If this parameter is omitted, nothing is excluded.
Amazon CloudWatch applies ExcludeFilters after IncludeFilters, so a metric that both parameters match is not enriched.
A maximum of 100 filters is allowed across IncludeFilters and ExcludeFilters combined.
(dict) --
Selects the metrics in one namespace, for use in the IncludeFilters or ExcludeFilters parameter of StartOTelEnrichment or UpdateOTelEnrichment.
A maximum of 100 selectors is allowed across IncludeFilters and ExcludeFilters combined.
Namespace (string) -- [REQUIRED]
The namespace of the metrics to select. Namespaces are matched exactly and are case-sensitive.
MetricNames (list) --
The names of the metrics to select within the namespace. Metric names are matched exactly and are case-sensitive. If this parameter is omitted, every metric in the namespace is selected.
A maximum of 100 metric names is allowed for each selector.
(string) --
boolean
Specifies whether enriched metrics include resource tag labels. If true, enriched metrics include resource tag labels. If false, they include resource ARN labels but no resource tag labels. If you omit this parameter, the default is true.
When EnableTagEnrichment is true, enriched metrics that carry resource tag labels are charged at the OTel enrichment rate. For more information, see Amazon CloudWatch Pricing.
dict
Response Syntax
{
'IncludeFilters': [
{
'Namespace': 'string',
'MetricNames': [
'string',
]
},
],
'ExcludeFilters': [
{
'Namespace': 'string',
'MetricNames': [
'string',
]
},
],
'CreatedAt': datetime(2015, 1, 1),
'UpdatedAt': datetime(2015, 1, 1),
'EnableTagEnrichment': True|False
}
Response Structure
(dict) --
IncludeFilters (list) --
The include filters that are stored for the account.
(dict) --
Selects the metrics in one namespace, for use in the IncludeFilters or ExcludeFilters parameter of StartOTelEnrichment or UpdateOTelEnrichment.
A maximum of 100 selectors is allowed across IncludeFilters and ExcludeFilters combined.
Namespace (string) --
The namespace of the metrics to select. Namespaces are matched exactly and are case-sensitive.
MetricNames (list) --
The names of the metrics to select within the namespace. Metric names are matched exactly and are case-sensitive. If this parameter is omitted, every metric in the namespace is selected.
A maximum of 100 metric names is allowed for each selector.
(string) --
ExcludeFilters (list) --
The exclude filters that are stored for the account.
(dict) --
Selects the metrics in one namespace, for use in the IncludeFilters or ExcludeFilters parameter of StartOTelEnrichment or UpdateOTelEnrichment.
A maximum of 100 selectors is allowed across IncludeFilters and ExcludeFilters combined.
Namespace (string) --
The namespace of the metrics to select. Namespaces are matched exactly and are case-sensitive.
MetricNames (list) --
The names of the metrics to select within the namespace. Metric names are matched exactly and are case-sensitive. If this parameter is omitted, every metric in the namespace is selected.
A maximum of 100 metric names is allowed for each selector.
(string) --
CreatedAt (datetime) --
The date and time that enrichment started for the account.
UpdatedAt (datetime) --
The date and time that the enrichment configuration for the account was last stored.
EnableTagEnrichment (boolean) --
Specifies whether enriched metrics include resource tag labels for the account.
{'EnableTagEnrichment': 'boolean'}
Replaces the filters that determine which CloudWatch vended metrics are enriched with resource ARN and resource tag labels for the account. Enrichment must already be running for the account. If it is not, this operation returns a ResourceNotFoundException. To start enrichment, use StartOTelEnrichment.
The filters in the request completely replace the stored filters; they are not merged with them. IncludeFilters and ExcludeFilters are replaced as a pair, so a request that specifies only IncludeFilters also clears the stored ExcludeFilters, and a request that specifies neither clears both.
See also: AWS API Documentation
Request Syntax
client.update_o_tel_enrichment(
IncludeFilters=[
{
'Namespace': 'string',
'MetricNames': [
'string',
]
},
],
ExcludeFilters=[
{
'Namespace': 'string',
'MetricNames': [
'string',
]
},
],
EnableTagEnrichment=True|False
)
list
The metric namespaces, and the metric names, to enrich. If this parameter is omitted, every namespace that Amazon CloudWatch supports for enrichment is in scope.
A maximum of 100 filters is allowed across IncludeFilters and ExcludeFilters combined.
(dict) --
Selects the metrics in one namespace, for use in the IncludeFilters or ExcludeFilters parameter of StartOTelEnrichment or UpdateOTelEnrichment.
A maximum of 100 selectors is allowed across IncludeFilters and ExcludeFilters combined.
Namespace (string) -- [REQUIRED]
The namespace of the metrics to select. Namespaces are matched exactly and are case-sensitive.
MetricNames (list) --
The names of the metrics to select within the namespace. Metric names are matched exactly and are case-sensitive. If this parameter is omitted, every metric in the namespace is selected.
A maximum of 100 metric names is allowed for each selector.
(string) --
list
The metric namespaces, and the metric names, to leave unenriched. If this parameter is omitted, nothing is excluded.
Amazon CloudWatch applies ExcludeFilters after IncludeFilters, so a metric that both parameters match is not enriched.
A maximum of 100 filters is allowed across IncludeFilters and ExcludeFilters combined.
(dict) --
Selects the metrics in one namespace, for use in the IncludeFilters or ExcludeFilters parameter of StartOTelEnrichment or UpdateOTelEnrichment.
A maximum of 100 selectors is allowed across IncludeFilters and ExcludeFilters combined.
Namespace (string) -- [REQUIRED]
The namespace of the metrics to select. Namespaces are matched exactly and are case-sensitive.
MetricNames (list) --
The names of the metrics to select within the namespace. Metric names are matched exactly and are case-sensitive. If this parameter is omitted, every metric in the namespace is selected.
A maximum of 100 metric names is allowed for each selector.
(string) --
boolean
Specifies whether enriched metrics include resource tag labels. If true, enriched metrics include resource tag labels. If false, they include resource ARN labels but no resource tag labels. If you omit this parameter, the stored value is not changed. The operation also replaces the stored filters, so to change only this setting, specify the current IncludeFilters and ExcludeFilters in the same request.
When EnableTagEnrichment is true, enriched metrics that carry resource tag labels are charged at the OTel enrichment rate. For more information, see Amazon CloudWatch Pricing.
dict
Response Syntax
{
'IncludeFilters': [
{
'Namespace': 'string',
'MetricNames': [
'string',
]
},
],
'ExcludeFilters': [
{
'Namespace': 'string',
'MetricNames': [
'string',
]
},
],
'CreatedAt': datetime(2015, 1, 1),
'UpdatedAt': datetime(2015, 1, 1),
'EnableTagEnrichment': True|False
}
Response Structure
(dict) --
IncludeFilters (list) --
The include filters that are stored for the account after the replacement. This parameter is omitted when the request cleared the include filters, which means that every supported namespace is in scope.
(dict) --
Selects the metrics in one namespace, for use in the IncludeFilters or ExcludeFilters parameter of StartOTelEnrichment or UpdateOTelEnrichment.
A maximum of 100 selectors is allowed across IncludeFilters and ExcludeFilters combined.
Namespace (string) --
The namespace of the metrics to select. Namespaces are matched exactly and are case-sensitive.
MetricNames (list) --
The names of the metrics to select within the namespace. Metric names are matched exactly and are case-sensitive. If this parameter is omitted, every metric in the namespace is selected.
A maximum of 100 metric names is allowed for each selector.
(string) --
ExcludeFilters (list) --
The exclude filters that are stored for the account after the replacement. This parameter is omitted when the request cleared the exclude filters, which means that nothing is excluded.
(dict) --
Selects the metrics in one namespace, for use in the IncludeFilters or ExcludeFilters parameter of StartOTelEnrichment or UpdateOTelEnrichment.
A maximum of 100 selectors is allowed across IncludeFilters and ExcludeFilters combined.
Namespace (string) --
The namespace of the metrics to select. Namespaces are matched exactly and are case-sensitive.
MetricNames (list) --
The names of the metrics to select within the namespace. Metric names are matched exactly and are case-sensitive. If this parameter is omitted, every metric in the namespace is selected.
A maximum of 100 metric names is allowed for each selector.
(string) --
CreatedAt (datetime) --
The date and time that enrichment started for the account.
UpdatedAt (datetime) --
The date and time that the enrichment configuration for the account was last stored.
EnableTagEnrichment (boolean) --
Specifies whether enriched metrics include resource tag labels for the account after the update. If the request omits EnableTagEnrichment, this is the value that was already stored.