influxdata / community-templates

InfluxDB Community Templates: Quickly collect & analyze time series data from a range of sources: Kubernetes, MySQL, Postgres, AWS, Nginx, Jenkins, and more.
https://www.influxdata.com/products/influxdb-templates/gallery/
Apache License 2.0
351 stars 157 forks source link

Ensure `schema.measurements()` is passed the dashboard time range #307

Closed btasker closed 2 years ago

btasker commented 2 years ago

Adjusts the flux query used for per measurement cardinality calculations to ensure that the dashboard's timerange is passed into schema.measurements

schema.measurements() looks at the last 30 days by default, so if the operator had selected a timerange of >30 days, the calculations might exclude relevant measurements (anything not written to in the last 30 days)