[influxdb] PromQL to InfluxQL

2018-04-13 Thread nehal
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? PromQL: sum(rate(container_cpu_usage_seconds_total{}[3m])) BY (namespace, pod_name) My InfluxQL attempt: SELECT sum("f64") FROM "db"."default"."_" WHERE ("__name__" = 'co

Re: [influxdb] PromQL to InfluxQL

2018-04-13 Thread Nehal Syed
— Correction — PromQL: sum(rate(container_cpu_usage_seconds_total{__name__= “container_cpu_usage_seconds_total", namespace = "monitoring", pod_name = "prometheus-k8s-1" }[3m])) > On Apr 13, 2018, at 10:43 PM, ne...@rafay.co wrote: > > Hi Guys, > I am new to influxql and I am trying to conv