sipcapture / paStash

pastaʃ'ʃ = Spaghetti I/O Event Data Processing, Interpolation, Correlation and beyond :spaghetti:
http://sipcapture.io
Apache License 2.0
102 stars 27 forks source link

Simple top input plugin #134

Open akvlad opened 2 years ago

akvlad commented 2 years ago

Scrape top output (RAM & CPU) and send it to qryn

input {
  top {
    ps => ["node index.js (how process command is displayed in ps aux)", "another command" ],
    pids => [1234, 456, <program PID> ... ]
    pidfiles => ["/tmp/proc1.pid", "/tmp/proc2.pid"]
  }
}

output {
  stdout{}
}

The plugin produces message consumable by output_loki or any other compatible.

CLAassistant commented 2 years ago

CLA assistant check
All committers have signed the CLA.