Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
#PARSER PQL
#METADATA SystemLoad
#METADATA TimeInterval
#RUNQUERY
sysloadout := ACCESSTIMER({
PERIOD = 1000, SOURCE           source='Systemload',
              wrapper='GenericPush',
              transport='Timer',
              protocol='systemload',
              datahandler='Tuple',
              options=[['period', '2000']]
            }
          )
          
#RUNQUERY
two = SYSTEMLOAD(sysload)= 'source'})

out2 = SYSTEMLOAD(out)


It creates an output as in the following:


Code Block
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.