This operator allows to add a new system load to the meta data. To use this operator, the Systemload feature must be installed

#PARSER PQL
#METADATA SystemLoad
#METADATA TimeInterval
#RUNQUERY
out = TIMER({PERIOD = 1000, SOURCE = 'source'})

out2 = SYSTEMLOAD(out)


It creates an output as in the following:


1613386630522 | META | ( i= 1613386630522|oo | sysload= {sysload:local {"TIME":1613386630530,"CPU_LOAD":0.09376250033334223,"USER_LOAD":5.33,"MEM_FREE":976347992,"MEM_TOTAL":1048576000,"SYSTEM_MEM_FREE":27068215296,"SYSTEM_MEM_TOTAL":51457654784,"NETWORK":[{"bytesSent":0,"bytesReceived":0,"mac":"---removed---"},{"bytesSent":0,"bytesReceived":0,"mac":"---removed---"},{"bytesSent":0,"bytesReceived":0,"mac":"---removed---"}]}} )

The Systemload is attached as a key value object with the following entries:

  • TIME: The timestamp of measurement (Current time in millies)
  • CPU_LOAD: The CPU load of the system
  • USER_LOAD: The user part of the CPU
  • MEM_FREE: Free memory for the VM (Runtime.getRuntime().freeMemory())
  • MEM_TOTAL: Available memory for the VM (Runtime.getRuntime().totalMemory())
  • SYSTEM_MEM_FREE: The free memory of the whole system
  • SYSTEM_MEM_TOTAL: Available memory of the whole system
  • NETWORK: For each network adapter 
    • bytesSent: The number of bytes send, since the last output
    • bytesReceived: The number of bytes read, sind the last output
    • mac: The mac adress of the adapter

NETWORK measurement is currently work in progress and will probably change in near future.




  • No labels