How to Display the Int values with String in Stats Panel

Hi,

I have two Prometheus metrics

metrics 1: mysql_global_status_threads_connected
value 1 : 10

metrics 2: mysql_global_variables_max_connections
value 2: 50

I need to show the output as “10/50”

How can I achieve this in the stats panel?

Any idea for the above request?

You gonna have to get a bit innovative

Instead of Stats use Canvas or svg plugin. Then using javascript you can concatenate those values.

https://localhost:3000/t/svg-panel-sql-server-query/65877/5