grafana / grafonnet-lib

Jsonnet library for generating Grafana dashboard files.
https://grafana.github.io/grafonnet-lib/
Apache License 2.0
1.08k stars 217 forks source link

cloudwatch period defaults to '1m' rather than being dynamic #345

Closed rhowe closed 3 years ago

rhowe commented 3 years ago

The cloudwatch target has a default for period of 1m but the cloudwatch datasource has a dynamic default for the period. This causes strange behaviour when selecting long time ranges, or working with e.g. S3 metrics which are recorded daily. It probably also makes cloudwatch queries more expensive as they will return more metrics than necessary?