ProcessResourcesCollector - Netuitive/omnibus-netuitive-agent GitHub Wiki
Configuration to insert in Diamond configuration file to monitor NGINX (as example of a process to monitor):
[ProcessResourcesCollector](/Netuitive/omnibus-netuitive-agent/wiki/ProcessResourcesCollector)
enabled = True
[[process](/Netuitive/omnibus-netuitive-agent/wiki/[process)]
[[[nginx](/Netuitive/omnibus-netuitive-agent/wiki/[[nginx)]]
name = "^nginx"
[[[diamond](/Netuitive/omnibus-netuitive-agent/wiki/[[diamond)]]
selfmon=True
Notes regarding the configuration lines above:
- Note the hierarchical convention for using brackets
- brackets to enable the plugin
- brackets to indicate the start of the list of processes
- brackets for each process. The name inside these brackets will be shown in the UI
- Configuration line: name = "^nginx”
- Note that you can use Regular Expression syntax to capture the desired process according on the Linux process name
- Configuration line: selfmon=True
- This optional line is only required if self-monitoring of the Diamond process is desired
You can review and use additional options available for this plugin at this page: https://github.com/python-diamond/Diamond/wiki/collectors-ProcessResourcesCollector You will notice differences in the configuration instructions presented at this link as compared to the instructions provided on this page. The difference is due to the fact that the link above assume a separate configuration file is used in a separate directory, whereas the instructions at this page assume that the configuration is included in the main Diamond configuration file.