grafana-discrete-panel
grafana-discrete-panel copied to clipboard
support showing string value for postgres data source
Currently it seems only numeric values are support. If the value is string (i.e. varchar), it will not crash but no value is shown.
@ryantxu if it's supported but I somehow missed that, could you kindly point me how to do it? Thanks very much.
I could use this feature too, but for ms sql data sources. I can use string values with influxdb sources already.
Yea, influxdb works for me as well, but I wanted to use redshift, so want to have postgres working as well.
what behavior are you seeing? I am using it with a postgres (google SQL, pretendign to be postres) datasource without issue
Same problem here. Using postgres 10.
It says: "Value column must have numeric datatype, column: status type: string value: OK"
Wierdly enoug, if I choose my primary key id as metric it says, that it would be able to use a string as a metric name: "Column metric must be of type UNKNOWN, TEXT, VARCHAR, CHAR. metric column name: metric type: INT8 but datatype is int64"
I've got the same issue with mysql. would be grate if "value" could be a string.
It seems that I am running into the same issue. @ryantxu what extra information do you need?
Without touching to the query, if I "format as table" and use the default table visualization tool, the data is a simple table with a column "time" and another one with strings in it.
It might be a grafana issue, since when I format the query as "time series" and expand the query, it seems that the output is empty:
Is there any chance to have the plugin work with query formatted as table? #40
Having the same problem with MySQL datasource, so have to convert my Values to ints using a case statement... which doesn't make for a very readable graph legend :(
Hi All
I've been banging my head against this lately too. I've found that with current versions of Grafana (ie: 6+), the currently released version of the plugin (0.0.9) doesn't work with strings.
Long story short: build your own v0.0.10-dev version from git master, and you'll get something that works with the latest Grafana.
cheers Ben