label_values({stack=~"$Box"},application)
This annotaion is resuting the below error
Template variables could not be initialized: parse error at char 23: vector selector must contain at least one non-empty matcher
label_values({stack=~"$Box"},application)
This annotaion is resuting the below error
Template variables could not be initialized: parse error at char 23: vector selector must contain at least one non-empty matcher
what is the value for your $Box variable ?
$Box value is prod,dev,UAT and Stage
so first i defined just label_values(stack_name)
which i named as $BOX
and then from $BOX i wanted to extract the application from the selected $BOX, so i used the below variable
label_values({stack=~"$Box"},application)
and then this error pops up
Template variables could not be initialized: parse error at char 23: vector selector must contain at least one non-empty matcher
can you open chrome dev tools and inspect the query grafana sends to Prometheus ?
please guide me how to resolve this error. i am also facing the same issue. getting all metrics like by using variable “metrics(org_apache_synapse_Endpoint)” with name $allmetrics and name value by using variable “label_values($allmetrics,Name)” . On updating am getting error message as “Template variables could not be initialized: parse error at char 35: could not parse remaining input “|org_apache_syn”…” but in chrome console “parse error at char 35: could not parse remaining input “|org_apache_syn”…”,“message”:“parse error at char 35: could not parse remaining input “|org_apache_syn”…”},“status”:400,“config”:{“method”:“GET”,“transformRequest”:[null],“transformResponse”:[null],“jsonpCallbackParam”:“callback”,“silent”:true,“url”:“api/datasources/proxy/1/api/v1/series?match[]=org_apache_synapse_Endpoint_Active%7Corg_apache_synapse_Endpoint_ActiveChildren&start=1544737564&end=1544759164”,“retry”:0,“headers”:{“X-Grafana-Org-Id”:1,“Accept”:“application/json, text/plain, /”}},“statusText”:“Bad Request”,“xhrStatus”:“complete”}"