You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Create a JSON data source using Infinitely Datasource in Grafana.
Ensure the JSON data includes a decimal value, such as 0.8.
Use CURL to request the data and verify that the decimal value is correctly returned.
Display the data in Grafana and observe that the decimal value is shown as 0 (after setting decimal to 2, it becomes 0.00) instead of 0.8.
Note: bugs will be fixed only if enough information provided to reproduce the issue
Sample Data
Here is a sample JSON data:
{
"value": 0.8
}
Screenshots
CURL Response
Grafana Display
Version Details:
Grafana version: 10.4.3
Plugin version: 2.5.0
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.
The text was updated successfully, but these errors were encountered:
iXingo
changed the title
[Bug]
[Bug] Floating-Point Precision Loss in JSON Data Source with Infinitely Datasource
Jun 25, 2024
以下是按照您提供的模板创建的GitHub Issue内容:
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.
The text was updated successfully, but these errors were encountered: