Please helpThank YouVial
--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/b62b55cf-5988-4ca4-a090-4d1ddcbd1333%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thanks Brian,That was very help fullI want to get stats for a certain label and below is what I am trying. I get parsing error. Please suggest how to get around this.When I try same in prometheus it works fine.curl -s 'http://172.17.0.1:9090/api/v1/query?query=vimals_sess_ttlconnected{gw="10.104.185.151"}'{"status":"error","errorType":"bad_data","error":"parse error at char 27: could not parse remaining input \"=\\\"10.104.185.15\"
RegardsVimal
On Tuesday, July 25, 2017 at 4:03:27 PM UTC+5:30, Brian Brazil wrote:
On 25 July 2017 at 11:28, <vim...@gmail.com> wrote:Hiwhen I give below curl query to prometheus, it returns an outputbut when I add one more parameter in the expression like given below, I get 400 bad request.sudo curl 'http://172.17.0.1:9090/api/v1/query?query=(num_session*.5 + avg_cpubusy*.2)You need to replace the spaces by %20 when using curl on the command line.There's also no need to use sudo with curl.Brian
Please helpThank YouVial
--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To post to this group, send email to promethe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/b62b55cf-5988-4ca4-a090-4d1ddcbd1333%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.