cloudwatch.adoc 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. = CloudWatch Metrics
  2. Spring Cloud AWS provides Spring Boot auto-configuration for Micrometer CloudWatch integration.
  3. To send metrics to CloudWatch add a dependency to `micrometer-registry-cloudwatch` module:
  4. [source,xml,indent=0]
  5. ----
  6. <dependency>
  7. <groupId>io.micrometer</groupId>
  8. <artifactId>micrometer-registry-cloudwatch2</artifactId>
  9. </dependency>
  10. ----
  11. Additionally, CloudWatch integration requires a value provided for `management.cloudwatch.metrics.export.namespace` configuration property.
  12. Following configuration properties are available to configure CloudWatch integration:
  13. [cols="3*", options="header"]
  14. |===
  15. |property
  16. |default
  17. |description
  18. |management.cloudwatch.metrics.export.namespace
  19. |
  20. |The namespace which will be used when sending metrics to CloudWatch. This property is needed and must not be null.
  21. |management.cloudwatch.metrics.export.step
  22. |1m
  23. |The interval at which metrics are sent to CloudWatch. The default is 1 minute.
  24. |spring.cloud.aws.cloudwatch.enabled
  25. |true
  26. |If CloudWatch integration should be enabled. This property should be likely set to `false` for a local development profile.
  27. |spring.cloud.aws.cloudwatch.endpoint
  28. |
  29. |Overrides the default endpoint.
  30. |spring.cloud.aws.cloudwatch.region
  31. |
  32. |The specific region for CloudWatch integration.
  33. |===