change duration to be period*2

Some metrics like DynamoDB are only updated every 5 minutes.

In order to successfully fetch data, you need to specify a period of 300s and a duration of at least 600s ago.

This commit defines the duration to be twice that of period, along with some DynamoDB examples.