Grafana Live: Unable to push strings with certain valid Unicode characters #67818
Labels
area/backend/api
area/live
triage/needs-confirmation
used for OSS triage rotation - reported issue needs to be reproduced
What went wrong?
What happened:
I'm pushing metrics to Grafana Live over WebSockets. These metrics contain strings. When the strings contain a form feed (U+000C) or carriage return (U+000D), the metrics are rejected. In the Grafana logs, I even see that the line protocol telegram appears to be truncated after the carriage return - the timestamp is left off, see my examples below.
Error log in case of form feed:
Error log in case of carriage return:
I've tested this against both v9.1.5 and v9.5.1 (bc353e4).
What did you expect to happen:
I expect that Grafana Live can consume any metric containing valid UTF-8 strings. In case that is not possible, I expect the strict subset of UTF-8 that is supported by Grafana Live to be documented somewhere.
How do we reproduce it?
Step 1:
Establish WebSocket connection to Grafana Live instance.
Step 2:
Send either of these line protocol messages (generated with Python code):
Step 3:
See the error logs for the rejection message.
What Grafana version are you using?
v9.1.5, v9.5.1 (bc353e4)
Optional Questions:
Is the bug inside a Dashboard Panel?
Copy the panel's "get-help" data here
Grafana Platform?
None
User's OS?
No response
User's Browser?
No response
Is this a Regression?
None
Are Datasources involved?
No response
Anything else to add?
No response
The text was updated successfully, but these errors were encountered: