1

I'm trying to use a variable at the start of one of my PromQL queries so I can return data based on the variable. Not sure if this is possible or not.

$variable_totalaccuracy_total

Expected to return the totalaccuracy for the variable but get back

error:"parse error at char 1: unexpected character: '$'"

1 Answer 1

3

Use braces around the variable name:

${variable}_totalaccuracy_total
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.