Skip to content

Commit

Permalink
Updated configuration schema for processes
Browse files Browse the repository at this point in the history
  • Loading branch information
ymettier committed Mar 25, 2015
1 parent 9f53d93 commit 4d0afdb
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions config/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,22 @@
}
"process": {
"enable": 1,
"process": [
"process": {
// The key is not used in Collectm. It only helps for config overwrite in local.json
// The value is an array with "plugin", "instance" and "commandline".
//
// This is an example :
{
"My Collectm": {
"plugin": "process",
"instance": "collectm",
"commandline": ".*node.*collectm.*"
"commandline": ".*node.*collectm\\.js.*"
},
"My NSSM for Collectm": {
"plugin": "process",
"instance": "nssm",
"commandline": ".*collectm.*nssm\\.exe.*"
}
]
}
}
}
}

0 comments on commit 4d0afdb

Please sign in to comment.