-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
procstat pattern allow list as input #14498
Comments
My apologies for missing this and a delay in response. @srebhan and I had looked into this before the holidays and had concerns around doing this. Unlike the other plugins that have a list of URLs or other items to loop through, the procstat plugin does some special data collection points and we have concerns around how timing is reported for each result. When Sven is back in next week I'll try to get a more detailed explanation and a decision. |
@hertz1987 sorry for the late response! The main concerns from my side regarding the suggested change are
There are additional timing issues when assuming you want a total over the whole list, but that's another story. Honestly speaking, as for all large installations, you should create a template and just generate the plugin configs from the template and your list if you want to avoid editing those manually... |
@hertz1987 this should be possible since PR #14948 by using |
Hello! I am closing this issue due to inactivity. I hope you were able to resolve your problem, if not please try posting this question in our Community Slack or Community Forums or provide additional details in this issue and reqeust that it be re-opened. Thank you! |
Use Case
We need to gather multiple processes (>50) with the same settings ( fieldpass & tagexclude ), but don't want to repeat these settings in all those configuration files (procstat/.conf), instead we wish to use a single configuration file
Expected behavior
A single procstat.conf would be sufficient for gathering all processes:
[[inputs.procstat]]
pattern = ['patternA',
'patternB',
'patternC',
...,
'patternZZZ'
]
fieldpass = ['memory_rss', 'memory_swap']
tagexclude = ['pattern']
Actual behavior
We must either:
[[inputs.procstat]]
pattern = 'patternA|patternB|patternC|...|patternZZZ'
fieldpass = ['memory_rss', 'memory_swap']
tagexclude = ['pattern']
or
2. write a configuration file for each process, but the settings ( fieldpass / tagexclude /...) would be redundant across all these configuration files which makes maintenance quite difficult:
patternA.conf:
[[inputs.procstat]]
pattern = 'patternA'
fieldpass = ['memory_rss', 'memory_swap']
tagexclude = ['pattern']
patternB.conf:
[[inputs.procstat]]
pattern = 'patternB'
fieldpass = ['memory_rss', 'memory_swap']
tagexclude = ['pattern']
...
patternZZZ.conf:
pattern = 'patternZZZ'
fieldpass = ['memory_rss', 'memory_swap']
tagexclude = ['pattern']
Additional info
No response
The text was updated successfully, but these errors were encountered: