From 4aa5ab88dde3d854f02fca6b7f85256a1a53e45c Mon Sep 17 00:00:00 2001 From: Matt Jibson Date: Wed, 26 Aug 2015 16:48:48 -0400 Subject: [PATCH] Use real cloudwatch limit Although cloudwatch allows 40KB of data, it may be from no more than 20 different metrics. Until we can do that, limit the total points to 20. --- util/saas/cloudwatch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/saas/cloudwatch.py b/util/saas/cloudwatch.py index eb1955b53..1f2a412dd 100644 --- a/util/saas/cloudwatch.py +++ b/util/saas/cloudwatch.py @@ -8,7 +8,7 @@ from threading import Thread logger = logging.getLogger(__name__) -MAX_BATCH_METRICS = 100 +MAX_BATCH_METRICS = 20 # Sleep for this much time between failed send requests. # This prevents hammering cloudwatch when it's not available.