Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Latest commit

 

History

History
38 lines (30 loc) · 1.2 KB

cloudwatch.adoc

File metadata and controls

38 lines (30 loc) · 1.2 KB

CloudWatch Metrics

Spring Cloud AWS provides Spring Boot auto-configuration for Micrometer CloudWatch integration. To send metrics to CloudWatch add a dependency to micrometer-registry-cloudwatch module:

<dependency>
	<groupId>io.micrometer</groupId>
	<artifactId>micrometer-registry-cloudwatch</artifactId>
</dependency>

Additionally CloudWatch integration requires a value provided for management.metrics.export.cloudwatch.namespace configuration property.

Following configuration properties are available to configure CloudWatch integration:

property default description

management.metrics.export.cloudwatch.namespace

The namespace which will be used when sending metrics to CloudWatch. This property is needed and must not be null.

management.metrics.export.cloudwatch.enabled

true

If CloudWatch integration should be enabled. This property should be likely set to false for a local development profile.

management.metrics.export.cloudwatch.region

The specific region for CloudWatch integration.

management.metrics.export.cloudwatch.step

1m

The interval at which metrics are sent to CloudWatch. The default is 1 minute.