You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What happened:
When using $__org or $__org.name in the queries to Prometheus, neither the organization ID nor the organization name appears in the query.
Query:
Query inspector:
Prometheus log:
As it can be seen, the variable $__org.name is never substituted by the organization name and arrives as $__org.name to Prometheus. It is also happening with $__org variable. No matter if I use curly braces (${__org.name}), I don't get the value in Prometheus. Besides, it is also happening when trying to define a new dashboard variable using one of the organization variables.
What you expected to happen:
Get the organization name in the query, instead of the name of the variable
How to reproduce it (as minimally and precisely as possible):
Use $__org or $__org.name in a query
Anything else we need to know?:
Might be related to #23841
@josemoreno thank you for reporting. To get the organization name you have to use ${__org.name} while you used it without curly braces. I'll leave there a link to the docs: https://grafana.com/docs/grafana/latest/variables/global-variables/#global-variables so you can read more about it (though I am sure you already did!).
As for the problem with variables evaluation itself, it seems to be the same issue as described in #23841, so I'll close this one and then follow up in that issue.
What happened:
When using $__org or $__org.name in the queries to Prometheus, neither the organization ID nor the organization name appears in the query.
Query:
Query inspector:
Prometheus log:
As it can be seen, the variable $__org.name is never substituted by the organization name and arrives as $__org.name to Prometheus. It is also happening with$__org variable. No matter if I use curly braces ($ {__org.name}), I don't get the value in Prometheus. Besides, it is also happening when trying to define a new dashboard variable using one of the organization variables.
What you expected to happen:
Get the organization name in the query, instead of the name of the variable
How to reproduce it (as minimally and precisely as possible):
Use $__org or $__org.name in a query
Anything else we need to know?:
Might be related to #23841
Environment:
Thanks!!
The text was updated successfully, but these errors were encountered: