stackdriver: distinct grafana auto from stackdriver auto in alignment period

This commit is contained in:
Erik Sundell
2018-09-26 15:44:09 +02:00
parent 13c68e6ed8
commit af9033f3e0
3 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -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"
}