mihalt
1
-
What Grafana version and what operating system are you using?
Grafana v12.3.1 (3a1c80ca7c)
-
What are you trying to achieve?
Correct formatting of logs with rich
-
How are you trying to achieve it?
Alloy + Loki
-
What happened?
Incorrect display
-
Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
No
The problem is not reproduced in terminal on the host machine. I think, that it is due to fonts. What do you think, how to fix aligns?
mihalt
2
I’ve just checked the manual change in browser to Courier New font. And it works fine. Is it possible to change font globally in Grafana?
The logs panel in Grafana already uses a monospace font, what are you using to visualize your logs in the screenshot you attached?
mihalt
4
Yes, I saw font-family: “Roboto Mono”, monospace;
But looks like it’s not true monospace. And it works fine immediately after the change to Courier New in browser.
I use Logs Visualization. You can try in my dashboard Logging Dashboard via Loki v3 | Grafana Labs .
But the direction should be Oldest first to correctly imitate rich logs formatting.