mqtt-datasource icon indicating copy to clipboard operation
mqtt-datasource copied to clipboard

Non ASCII characters in topic names not handled well when creating datasource channel id

Open barskern opened this issue 2 years ago • 1 comments

If a topic contains a non-ascii character, that character has to be removed or changed prior to creating a channel id. When the topic is used directly that means that any topic with such characters is invalid. Particularly, this is annoying if you want to monitor any builtin topics from MQTT such as $SYS/broker/....

Channel ID requirements detailed here.

Location in this codebase where invalid channel ID is created.

barskern avatar Nov 08 '23 15:11 barskern

The problem is that grafana query to backend datasources do not allow this characters. They also do not allow + and #.

I added support for this two characters by changing them in the frontend to something like __PLUS and __HASH and in the backend reverted this.

Nocccer avatar Feb 11 '24 01:02 Nocccer