Monitoring the AWS AppConfig extension in AWS Systems Manager Cloud Extensions
The extension sends its metrics to CloudWatch. For how to query the metrics and alarm on them, see CloudWatch metrics. After you add the extension to a profile, check the logs of the extension in CloudWatch Logs after your next invocation.
Topics
Cache metrics
The extension counts the following cache metrics:
| Metric | Counted when |
|---|---|
|
|
The extension answers a request from a configuration that's already in the cache. |
|
|
A request arrives for a configuration that isn't in the cache. |
|
|
A retrieval fails for a configuration that isn't in the cache. |
|
|
A background poll fails for a configuration that stays in the cache. |
|
|
A configuration leaves the cache, because AWS AppConfig stopped serving its deployment or because the AWS region setting changed. |
The cache metrics are OpenTelemetry metrics, so they don't have a classic CloudWatch namespace and dimensions. They have the following properties:
-
Instrumentation scope –
cloudwatch.aws/appconfig/cloudextensions. -
Attributes on every data point –
extension.nameandextension.version. -
Resource attributes –
cloud.account.id,cloud.region,cloud.provider, andcloud.resource_id. The value ofcloud.resource_idis the ARN of the profile entry. -
Type – Each metric is a delta sum.
To alarm on a cache metric, use a Prometheus Query Language (PromQL) query in CloudWatch. For example, the following query is true when a retrieval fails in the last five minutes:
sum(sum_over_time({"cache.load.failures"}[5m])) > 0