Instance group as variable

  • What Grafana version and what operating system are you using?
    v9.4.1 in Docker

  • What are you trying to achieve?
    I have servers named AB001PRDS01, AB001PRDS02, AB002PRDS01, AB002PRDS02, … and so on. I want in the dashboard a selection for AB001, AB002 and so on and the queries are then the sum of the value over all those hosts.

  • How are you trying to achieve it?
    I have no idea.

  • What happened?
    Nothing yet.

  • What did you expect to happen?
    A dropdown menu where I can select a group of servers and I can then see the metrics summed up.

  • Can you copy/paste the configuration(s) that you are having problems with?
    Current query: sum(windows_terminal_services_local_session_count{instance=~“$farm”, session=~“active”})
    The variable $farm should be all the servers grouped together.

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
    No errors.

  • Did you follow any online instructions? If so, what is the URL?
    Could not find any.