Grafana calculate the difference

Is it possible to calculate the difference of values of two queries A and B in singlestat in Graphane and output the result?
Zabbix v3.4, Grafana v4

You can do using Meta Queries Plugin

1 Like

Thx for your reply this?
Can I use it for Singlestat to show result as a digit in the block?

Installed, but did not help

Yes, it!!

You are wrong, if your metric are name “metricA” and “metricB”, the arithmetic expression is:

unfortunately, the singlestat shows only last query

I was able to solve this task. I used Blendstat panel, but I had to fix some functions. I added the “Diff” function to the file module.js.