Need help with the Dashboard variable

Hi members,

I am new to grafana, I am trying to monitor all my windows servers which are hosted in AWS in different environments (Dev, Prod, Test). I have installed grafana alloy agent in all my servers, to get windows metrics. Here the problem is I would like to display them in a dashboard, but I am getting all the servers together in one place (although I used different grafana alloy for different environments) rather than showing as different environments. Can you help me how can I do it?

I want to achieve, in the image I have setup “environments” custom variable, and if I select one then the servers belongs to the selected environment needs to be displayed.