How to stop grafana from converting hex-string to integer?

Viewed 659

I have grafana running with its datasource as clickhouse which has a column which stores hex-representations as string. Grafana is automatically conerting the hex value to decimal which I do not want to happen. How do I stop grafana from converting the data ?

2 Answers

I've experienced this with other data sources in Grafana (e.g. PostgreSQL and Prometheus) and what I did might help someone.

The general idea is to display the hexadecimal values as Strings. For that, navigate to: Panel editor (right) > Standard options > Unit > Misc and choose String (see image below).

enter image description here

Other relevant details:

  • Grafana version: v8.2.6
  • Panel type: Table
Related