Open iXingo opened 1 month ago
Adding a comment that this is something I just ran into as well. It seems that grafana/infinity (not sure which), limits the precision to a single decimal point, no matter what the actual data resolution is for the data returned by the query. EDIT It seems to be a display option for the dashboard/panel "decimal", not supported by many visualization options.
Describe the bug
When using the Infinitely Datasource in Grafana to create a JSON data source, the returned data includes a decimal value of 0.8. However, while the data can be correctly returned as a decimal using CURL, Grafana displays the data as 0, losing the precision and converting the floating-point number to an integer.
Steps to reproduce
Note: bugs will be fixed only if enough information provided to reproduce the issue
Sample Data
Here is a sample JSON data:
Screenshots
CURL Response
Grafana Display
Version Details:
Additional context
This issue seems to be related to how Grafana handles floating-point numbers in JSON data sources. It appears that the precision is lost when displaying the data in Grafana. This issue does not occur when using CURL to fetch the data directly.