@Bean
    @ConditionalOnMissingBean(name = "cloudWatchMeterRegistry")
    public MeterRegistry cloudWatchMeterRegistry(
        final Clock clock,
        @Qualifier("cloudWatchClient") final CloudWatchAsyncClient cloudWatchClient) {
        val cloudWatchConfig = new CloudWatchConfig() {
            @Override
            public String get(final String key) {
                return CLOUDWATCH_CONFIGURATION.get(key);
            }
        };

        return new CloudWatchMeterRegistry(cloudWatchConfig, clock,
            cloudWatchClient, Thread.ofVirtual().factory());
    }
System property to specify the endpoint for AWS cloudwatch.
support/cas-server-support-aws-cloudwatch/src/main/java/org/apereo/cas/config/CasAmazonCloudWatchMetricsConfiguration.java