splunk / collectd-plugins

SAI x Collectd: https://docs.splunk.com/Documentation/InfraApp/latest/Admin/ManageAgents
13 stars 5 forks source link

processmon.count do not contains process_name dimension #2

Open sandrosov opened 4 years ago

sandrosov commented 4 years ago

Hi, First of all, big thanks for the product. I have the enhancement request from real-word ITSI/SAI project.

Use Case: A company running several app instances with a different configuration via CMD line ps output looks like this: /opt/sdp/sdpnode /opt/sdp/conf/package_name1.pkg /opt/sdp/sdpnode /opt/sdp/conf/package_name2.pkg

And they want to track in SAI and ITSI if they have a particular count of package_name1 or package_2 are running on the host.

A configuration sample for OOTB processes plugin for collectd that solve the issue looks like this: ProcessMatch "package_1" "./sdpnode.package_name1.pkg"

Then they have a set of metrics like this: processes.package_1.ps_count that isn't good because Please add process_name as a dimension to processmon.count metrics.