-
-
Notifications
You must be signed in to change notification settings - Fork 248
Removed hard-coded mappings in pcp dstat; resolves issue #2017 #2196
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
Conversation
Updated pcp dstat tool to not rely on hard coded mappings between instance filtering command line options and the specific plugin they apply to
Read #2017 and #2016 to get an understanding what the patch is addressing. The patch looks sane. It would be really good to have a test in qa directory to verify that the some filtering is working. It looks like qa/1187 would be a likely place to include such a test. Ideally, would check that #2016 is addressed, but that would require some additional archived data. To keep it simple maybe filter existing archive data for cpu usage. One thing I noticed is that the filtertype ended up being the plugin file name. Are there going to be any cases where the filtertype is going to be different that the plugin name? |
| One thing I noticed is that the filtertype ended up being the plugin file name. I think this is a safe assumption to make at this stage. Only future plugin/filter I can think of is for GPUs, but I expect they'll each require a separate file (a bit like disk vs dm vs md I guess). |
For testing it would be good to build an RPM with this patch installed, install the generated RPMs, and test out on the dstat test group with:
Looking through the patch it seems odd that the plugins have "filtertype" but the pcp-dstat.py is looking for "filter". Is that correct? When trying to try this out for future extentions to support dstat monitoring of GPUs (#2095) changed pcp-dstat.py to look for "filtertype", but got:
|
| sudo ./check -g dstat Just for info, the testsuite installs a 'pcpqa' user and some tests do not correctly as root - I tend to "su - pcpqa" (which also conveniently lands you in /var/lib/pcp/testsuite) and from there it's just "./check ..." |
The earlier error message was due to a GNUMakefile in the pcp dstat plugin directory. Eliminating that issue uncovered some additional things that need to be addressed in the patch:
|
See new PR #2218 |
Resolves git issue #2017
Updated pcp dstat tool to not rely on hard coded mappings between instance filtering command line options and the specific plugin they apply to