#Hi all where can I check for the unit of

1 messages · Page 1 of 1 (latest)

limber escarp
#

hi @glad ore I can give you the commands to do that - are you interested in the unit from a Zapi template or ZapiPerf template?

glad ore
#

Hi @limber escarp sure!
ZapiPerf template, SystemNode to be specific

limber escarp
#

in the Harvest directory, if you run bin/zapi you should see usage text printed for a tool that lets you explore zapi counters - then we can focus on SystemNode like this, replace u2 with the name of your poller defined in your harvest.yml
bin/zapi --poller u2 show counters --object system:node --write color

#

system:node came from looking at the query defined in the template

#

if you have dasel installed, I prefer to output the data as XML and convert to json like this. If you don't have dasel installed, you should 😄
bin/zapi --poller u2 show counters --object system:node | dasel -r xml -w json