Stat with 2 metrics and threshold coloring

  • What Grafana version and what operating system are you using?


  • What are you trying to achieve?

i have 2 metrics in some stat, I would like that:
metric#1 will be shown as number value
metric#2 value will be used for threshold coloring determination.

as example:
metric#1 - shows number of VMs on the host in the stat panel
metric#2 - checks the host availability, if it has value - 0, stat panel became red color.

  • How are you trying to achieve it?

added 2 metrics into stat

  • What happened?

stat shows 2 metrics values on the dashboard

@sergw What is your datasource? Have you seen/tried this? It’s not identical to what you are trying to do, but it could be adapted to.

my datasource is prometheus.
i didnt try that.

ok i’ve got the idea, it will require to adopt same way in PromQL.

ps. btw it would be nice if grafana would have more easier way for implementing this simple case.