Hi, I want to use the Worldmap Panel plugin to show some points on the map using Prometheus and 8.1.7
Grafana. To do this - according to the plugin’s documentation - I need to use the table format of the data. I have successfully drawn some points on the map by converting labels with coordinates values(longitude and latitude) specifying table format in a query.
However, the precision of my points is unsatisfactory due to unexpected rounding of the values: 37.360000
value I got from Prometheus is converted to 37.4
. I tried to find any converting parameters and/or transforming functions for it but have not found any solutions.
It seems strange if it is impossible to have data in table form without losing precision. Have I missed something?
Hi,
Find the decimal box and fill with value that you want to view, such as 4, means 4 digit decimal.
Regards,
Fadjar Tandabawana
Hi, @fadjar340! Thanks for your reply!
I see only the plugin’s settings and there is decimal
box but it does not affect the “time-series => table” conversion. Moreover, there is such a box in the “Standard options” for “Time series” visualization that also does not affect conversion (see attached pic).
Example of the metrics that I receive:
{
"metric": {
"__name__": "something",
"instance": "something",
"job": "something",
"latitude": "55.4500",
"location": "Moskva",
"longitude": "37.3600",
"something": "something"
},
"value":[
1633681429,
"2"
]
}
Hi,
Try to choose the unit to “short”, then fill the decimal, let say 5.
Because in the global setting is for all fields, you can do the other way around using Override per fields name, and chose the unit and decimal inside the override config.
Regards,
Fadjar Tandabawana