Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple top input plugin #134

Open
wants to merge 2 commits into
base: next
Choose a base branch
from
Open

Conversation

akvlad
Copy link
Contributor

@akvlad akvlad commented Jul 23, 2022

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
Copy link

CLAassistant commented Jul 23, 2022

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants