Skip to content

feat(inputs.procstat): Add child level tag #16104

@tguenneguez

Description

@tguenneguez

Use Case

With procstat plugin it's not possible to know the CPU consomation for master processes for exemple.
In the procstat liste, there is no information about level of child.
It's important to avec different tag to use agregators.

Expected behavior

Add child_level :

procstat,filter=/usr/sbin/httpd-root,process_name=httpd cpu_usage_sum=0,memory_usage_sum=0.2552110254764557 1730221495000000000
procstat,filter=/usr/sbin/httpd-root,parent_pid=3899854,child_level=1,process_name=httpd cpu_usage_sum=0,memory_usage_sum=0.6878506392240524 1730221495000000000
procstat,filter=/usr/sbin/httpd-root,parent_pid=3899854,child_level=1,process_name=httpd cpu_usage_sum=0,memory_usage_sum=0.6878506392240524 1730221495000000000

Actual behavior

procstat,filter=/usr/sbin/httpd-root,process_name=httpd cpu_usage_sum=0,memory_usage_sum=0.2552110254764557 1730221495000000000
procstat,filter=/usr/sbin/httpd-root,parent_pid=3899854,process_name=httpd cpu_usage_sum=0,memory_usage_sum=0.6878506392240524 1730221495000000000
procstat,filter=/usr/sbin/httpd-root,parent_pid=3899854,process_name=httpd cpu_usage_sum=0,memory_usage_sum=0.6878506392240524 1730221495000000000

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestRequests for new plugin and for new features to existing plugins

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions