Commit f2f5b67
Eugene Cheung
fix(dynamo): divide GSI consumed RCU/WCU metrics by period (#368)
Fixes #362
Results in a dashboard widget with a source like:
```
{
"view": "timeSeries",
"title": "Read Capacity",
"region": "us-east-1",
"metrics": [
[ { "label": "Consumed", "expression": "consumed_rcu_sum/PERIOD(consumed_rcu_sum)", "region": "us-east-1" } ],
[ "AWS/DynamoDB", "ConsumedReadCapacityUnits", "GlobalSecondaryIndexName", "SampleTable2-GSI", "TableName", "SampleTable2", { "stat": "Sum", "visible": false, "id": "consumed_rcu_sum", "region": "us-east-1" } ],
[ ".", "ProvisionedReadCapacityUnits", ".", ".", ".", ".", { "label": "Provisioned", "stat": "Sum", "region": "us-east-1" } ]
],
"yAxis": {
"left": {
"min": 0,
"label": "Count",
"showUnits": false
}
},
"timezone": "UTC"
}
```
---
_By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license_1 parent 005d951 commit f2f5b67
File tree
2 files changed
+28
-22
lines changed- lib/monitoring/aws-dynamo
- test/monitoring/aws-dynamo/__snapshots__
2 files changed
+28
-22
lines changedLines changed: 20 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| |||
48 | 50 | | |
49 | 51 | | |
50 | 52 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
58 | 62 | | |
59 | 63 | | |
60 | 64 | | |
61 | 65 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
69 | 75 | | |
70 | 76 | | |
71 | 77 | | |
| |||
Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments