I am running Grafana on a Linux Ubuntu 16.04 machine. The other day it updated to version 8.0 and now my visualizations are broken or ugly.
Here is an example of how it looked before:
Here is how it looks now:
I can identify several problems:
- Apparently the
single-stat
panel is not supported any more. It has been replaced by the horrible, ugly, no-goodstat
panel. At least it displays something (unlike some other panels that are completely broken; I’ll get to that in a moment) - but it is ugly. Several problems with it:
-
The numbers are too large. OK, I can change the size of the text - but to what? Previously, I was using 70% font size. Here I am supposed to enter some absolute number (pixels?). “30” looks approximately like the old size - but I’m not sure. What number should I use here, in order to have the same size as before?
-
The text is colored. OK, I can change the color scheme to “single color” and select the “text” color for it - and this mostly works but only for panels that contain a single number. What about those that contain a graph? To begin with, why didn’t the conversion use the color I had already set in the old panel? OK, I know what colors I used there, so I can change that. But why is the text colored the same as the graph?! I want only the graph to be colored. How do I change the color of the text?
- The WorldMap panel simply no longer works. I use a MySQL database as a data source. It hasn’t changed. If I enter manually the request that I’ve told Grafana to use, I get correctly a table of data. But the Grafana panel is showing an error instead:
'failed to convert long to wide series when converting from dataframe: long series must be sorted ascending by time to be converted"
WTF does this mean? Googling the exact message yields nothing. The query I use in Grafana is something like
SELECT
$__time(timestamp),
country_iso_code AS metric,
COUNT(country_iso_code) AS value
FROM
connections,
geolocation
WHERE
$__timeFilter(timestamp) AND
connections.ip = geolocation.ip
GROUP BY metric
When the macros are resolved, this translates to something like
SELECT
UNIX_TIMESTAMP(timestamp) as time_sec,
country_iso_code AS metric,
COUNT(country_iso_code) AS value
FROM
connections,
geolocation
WHERE
timestamp BETWEEN FROM_UNIXTIME(1622882715) AND FROM_UNIXTIME(1623487515) AND
connections.ip = geolocation.ip
GROUP BY metric
If entered manually to MySQL, it returns data like this:
time_sec | metric | value |
---|---|---|
1623001011 | BE | 1 |
1623001003 | GB | 1 |
1623032218 | NL | 1 |
1622911279 | US | 22 |
What am I supposed to do, in order to make it work?
- Then there is a pie chart panel, which simply doesn’t display anything any more (“no data points”), although not an error indication, either. I suspect that the problem is similar as the previous one.
Damn it, guys, why do the developers always have to break things when issuing a new version?! I’ve had problems literally with every update - but so far they were minor, like things in the user interface being moved around and made more inconvenient. But now our whole visualization is broken and the boss won’t be happy…
Any help?