@@ -90,13 +90,6 @@ local prometheus = grafana.prometheus;
9090 else if cfg.type == variable.datasource_type.influxdb then
9191 influxdb.target(
9292 rawQuery=true ,
93- // query=|||
94- // SELECT non_negative_derivative(SUM("value"), 1s)
95- // FROM "$policy"."$measurement"
96- // WHERE (("metric_name" = 'tnt_cpu_user_time' OR "metric_name" = 'tnt_cpu_system_time') AND "label_pairs_alias" =~ /^$alias$/)
97- // AND $timeFilter
98- // GROUP BY time($__interval), "label_pairs_alias" fill(none)
99- // |||,
10093 query=std.format(|||
10194 SELECT non_negative_derivative(SUM("value"), 1s)
10295 FROM %(measurement_with_policy)s
@@ -186,13 +179,6 @@ local prometheus = grafana.prometheus;
186179 }
187180 ),
188181 prometheus_legend=title,
189- // influx_query=|||
190- // SELECT non_negative_derivative(SUM("value"), 1s) AS total_cpu_time_per_cluster
191- // FROM "$policy"."$measurement"
192- // WHERE ("metric_name" = 'tnt_cpu_user_time' OR "metric_name" = 'tnt_cpu_system_time')
193- // AND $timeFilter
194- // GROUP BY time($__interval)
195- // |||,
196182 influx_query=std.format(|||
197183 SELECT non_negative_derivative(SUM("value"), 1s)
198184 FROM %(measurement_with_policy)s
@@ -236,13 +222,6 @@ local prometheus = grafana.prometheus;
236222 }
237223 ),
238224 prometheus_legend=title,
239- // influx_query=|||
240- // SELECT non_negative_derivative(SUM("value"), 1s) AS total_cpu_user_time
241- // FROM "$policy"."$measurement"
242- // WHERE "metric_name" = 'tnt_cpu_user_time' AND "label_pairs_alias" =~ /^$alias$/
243- // AND $timeFilter
244- // GROUP BY time($__interval)
245- // |||,
246225 influx_query=std.format(|||
247226 SELECT non_negative_derivative(SUM("value"), 1s)
248227 FROM %(measurement_with_policy)s
@@ -283,13 +262,6 @@ local prometheus = grafana.prometheus;
283262 }
284263 ),
285264 prometheus_legend=title,
286- // influx_query=|||
287- // SELECT non_negative_derivative(SUM("value"), 1s) AS total_cpu_system_time
288- // FROM "$policy"."$measurement"
289- // WHERE ("metric_name" = 'tnt_cpu_system_time' AND "label_pairs_alias" =~ /^$alias$/)
290- // AND $timeFilter
291- // GROUP BY time($__interval)
292- // |||,
293265 influx_query=std.format(|||
294266 SELECT non_negative_derivative(SUM("value"), 1s)
295267 FROM %(measurement_with_policy)s
0 commit comments