-
What Grafana version and what operating system are you using?
grafana v10.1.2 in a docker container. -
What are you trying to achieve?
Trying to show a gauge to show number of devices available from a static data source.
Some devices are borrowed and some are currently not enabled.
If they are borrowed, or not enabled, they are not available, and I would like to visualise that.
For example, I have set up a static data source that contains the necessary data.
https://play.grafana.org/d/eb3124ef-4d1d-4716-a42d-3e028fb0825a/availability?orgId=1
-
How are you trying to achieve it?
Converting boolean type to number and several (9) transformations for calculations, to sum number of boards borrowed and enabled, and other transformations to subtract these from the total count. -
What did you expect to happen?
I expected fewer transformations. If I had the information in a database, I could write SQL to easily produce a number.
Reduce Row to in sum the converted numeric fields, which would minimise the number of transformations -
Can you copy/paste the configuration(s) that you are having problems with?
Grafana
EDIT: I removed references to JSON as I think I may have caused some confusion. The JSON data is on a VPN, so I set up a Static datasource to demonstrate.