Can Telegraf track the uname command from a machine

i added the custom metrics in telegraf configuration as below

Read the metrics from uname command

[[inputs.exec]]
 commands = ["uname -a"]
 timeout = "5s"

Now i’m trying the view the uname output in grafana dashboard
i tried the below query to view the output but i’m not able to view the output of uname command in the grafana dashboard . please help on this

SELECT * FROM “exec” WHERE “command” = ‘uname -a’

view the uname output

The entire output? Or only a part of uname, like the kernel version?

[[inputs.exec]]
  commands = ["uname -r"]
  timeout = "5s"
  data_format = "value"
  data_type = "string"

can produce:

exec,host=ryzen value="6.3.8-arch1-1" 1687353243000000000

@jpowers
i want the entire output .

and how i have to write the query to fetch this uname /any other custom command output in grafana . i’m using influxdb as datasource . please help me on this .

@raviteja.chandika if you just want the output as a single string (i.e. not split into fields) you can simply replace the -r flag in @jpowers example!?!