How to add Dynamic Variable into Graphs like filter with Victoriametrics


I have an issue with binding my Variable with graphs, because Iam using Metrics from Victoriametrics and I do not see
How Can I bind my metrics with Variables.

At the end I want to achieve Variable like a filter to choose data from specific place.

On a Query in graphs I do not see any option to add something like this.
Could you please advise how to do it?

For now my Variable takes value from metric, so it works (because I can choose from that button different things),

But I do not have idea how to do it on the graph.