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
The original query is: "query": "sum:ray.cluster.active_nodes{$service,$host}" and it works fine.
When I do "query": "sum:bigraycluster.ray.cluster.active_nodes{$service,$host}" it works but when I add a variable "query": "sum:$raycluster.ray.cluster.active_nodes{$service,$host}" it gives me a query error.
Are variables not allowed in metrics? I did try {$raycluster}
There are a bunch of custom metrics that looks like:
There is a template variables dropdown (https://docs.datadoghq.com/dashboards/template_variables/) on the dashboard that contains all keys. (Name of the variable is $key and values key1, key2..)
The metrics query like this works fine:
But is it possible to parametrize the query with the $key variable by concatenation with the part of the name of metric? So it would look like this:
As I know, it is possible to something like that by using tags but unfortunately, there are no any metrics with the tag "key".
Not sure that the issue was created in the appropriate repo so move it to the correct one if needed.
Also, here is the same StackOverflow question:
https://stackoverflow.com/questions/64661079/string-interpolation-with-the-name-of-metric-in-the-datadog-query
The text was updated successfully, but these errors were encountered: