View a markdown version of this page

Monitoring the AWS AppConfig extension in AWS Systems Manager Cloud Extensions - AWS Systems Manager

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.

Cache metrics

The extension counts the following cache metrics:

Metric Counted when

cache.hits

The extension answers a request from a configuration that's already in the cache.

cache.misses

A request arrives for a configuration that isn't in the cache.

cache.load.failures

A retrieval fails for a configuration that isn't in the cache.

cache.refresh.failures

A background poll fails for a configuration that stays in the cache.

cache.evictions

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.name and extension.version.

  • Resource attributes – cloud.account.id, cloud.region, cloud.provider, and cloud.resource_id. The value of cloud.resource_id is 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