stackdriver: distinct grafana auto from stackdriver auto in alignment period
This commit is contained in:
1 parent
13c68e6ed8
commit
af9033f3e0
3 files changed
+6
-5
No files matched your search
@@ -184,7 +184,7 @@ func setAggParams(params *url.Values, query *tsdb.Query) {
|
||||
perSeriesAligner = "ALIGN_MEAN"
|
||||
}
|
||||
|
||||
if alignmentPeriod == "auto" || alignmentPeriod == "" {
|
||||
if alignmentPeriod == "grafana-auto" || alignmentPeriod == "" {
|
||||
alignmentPeriodValue := int(math.Max(float64(query.IntervalMs), 60.0))
|
||||
alignmentPeriod = "+" + strconv.Itoa(alignmentPeriodValue) + "s"
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user