@@ -133,26 +66,8 @@ func (s *influxdbSource) GetUsagePercentile(kind api.ResourceName, perc int64, i
...
@@ -133,26 +66,8 @@ func (s *influxdbSource) GetUsagePercentile(kind api.ResourceName, perc int64, i
}
}
query:=fmt.Sprintf("select percentile(value, %v), count(pod_id) from %v where container_base_image%v%v and time > '%v' and time < '%v'",perc,series,imgPattern,namespaceCond,start.UTC().Format(timeFormat),end.UTC().Format(timeFormat))
query:=fmt.Sprintf("select percentile(value, %v), count(pod_id) from %v where container_base_image%v%v and time > '%v' and time < '%v'",perc,series,imgPattern,namespaceCond,start.UTC().Format(timeFormat),end.UTC().Format(timeFormat))