Display a dynamic name inside stat panel

I want to create a dashboard similar to this:

I got this dasboard using stat panel. However I want to display in each panel a variable that corresponds to the host value inside of the panel. That is instead of total, that is the name of the field, I want to display a grafana variable’s (I only got that in the title of each panel (H1, H2, H3) )

But the value that corresponds to total fiels has to persist in order to keep the color variation.

Is it possible in this stat panel? There is a better way to resolve that?

Thank you

  • Grafana version: 9.2.1
  • Ubuntu
  • I am using grafana with prometheus.

I tried to follow another approach.
But I do not understand the reason to not work.

I am able to display the host name on panel without and with background color, but without configured threshold. Then I create an override (see the image bellow). I though that in this way I will be able to display the hosts name with the color defined based on the override, but the color does not persist.