@@ -11,15 +11,16 @@ tags:
11
11
team : Core Infrastructure
12
12
---
13
13
14
- All managed services will have trade-offs, when we adopted AWS ElastiCache we
15
- could no longer use Datadog's excellent excellent [ Redis
14
+ All managed services will have trade-offs. When Scribd adopted AWS ElastiCache we
15
+ could no longer use Datadog's excellent [ Redis
16
16
integration] ( https://docs.datadoghq.com/integrations/redisdb/ )
17
- and some killer metrics we couldn't live without.
17
+ and lost some killer metrics we couldn't live without.
18
18
We deployed the [ AWS ElastiCache
19
- integration] ( https://docs.datadoghq.com/integrations/amazon_elasticache/#overview ) .
20
- for Datadog which returned some of the desired metrics back to our dashbards
21
- with one notable exception: "slowlog" metrics. The Redis
22
- [ ` SLOWLOG ` ] ( https://redis.io/commands/slowlog ) is used to help identify queries
19
+ integration] ( https://docs.datadoghq.com/integrations/amazon_elasticache/#overview )
20
+ for Datadog which returned the desired metrics back to our dashbards
21
+ with one notable exception: "slowlog" metrics.
22
+
23
+ The Redis [ ` SLOWLOG ` ] ( https://redis.io/commands/slowlog ) is used to help identify queries
23
24
which are taking too long to execute. We use the slowlog metrics provided by the
24
25
Datadog Redis integration alert us when a Redis server's behavior starts to go
25
26
south, a key indicator of looming user-impactful production issues.
@@ -46,9 +47,9 @@ page](https://github.com/scribd/elasticache-slowlog-to-datadog/releases). To
46
47
deploy directly to AWS from the console, upload the “Full zip distribution” and
47
48
supply the [ required
48
49
parameters] ( https://github.com/scribd/elasticache-slowlog-to-datadog#parameters ) .
49
- I’d recommend using our Terraform wrapper , however.
50
+ I’d recommend using our Terraform module , however.
50
51
51
- ## The Terraform wrapper
52
+ ## The Terraform Module
52
53
53
54
The second part of the equation is the Terraform module:
54
55
[ terraform-elasticache-slowlog-to-datadog] ( https://github.com/scribd/terraform-elasticache-slowlog-to-datadog )
@@ -62,8 +63,8 @@ S3](https://www.terraform.io/docs/providers/aws/r/lambda_function.html#specifyin
62
63
However, I like the approach of maintaining a separate repository and build
63
64
pipeline, as this works around Terraform’s [ intentionally limited build
64
65
functionality] ( https://github.com/hashicorp/terraform/issues/8344#issuecomment-361014199 ) .
65
- In essence, the terraform wrapper merely [ consumes the
66
- elasticache-slowlog-to-datadog
66
+ The terraform module consumes the
67
+ [ elasticache-slowlog-to-datadog
67
68
artifact] ( https://github.com/scribd/terraform-elasticache-slowlog-to-datadog/blob/master/main.tf#L97 ) .
68
69
69
70
## Usage
0 commit comments