Hi Guys,
I am new to influxql and I am trying to convert PromQL query to InfluxQL 
syntax. Can anyone help me and correct it?

sum(rate(container_cpu_usage_seconds_total{}[3m])) BY (namespace, pod_name)

My InfluxQL attempt:
SELECT sum("f64") FROM "db"."default"."_" WHERE ("__name__" = 
'container_cpu_usage_seconds_total' AND "namespace" = 'monitoring' AND 
"pod_name" = 'prometheus-k8s-1' AND time >= now() - 3m GROUP BY time(1s) 


Remember to include the version number!
You received this message because you are subscribed to the Google Groups 
"InfluxData" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to influxdb+unsubscr...@googlegroups.com.
To post to this group, send email to influxdb@googlegroups.com.
Visit this group at https://groups.google.com/group/influxdb.
To view this discussion on the web visit 
For more options, visit https://groups.google.com/d/optout.

Reply via email to