-
-
Notifications
You must be signed in to change notification settings - Fork 238
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
Disk device filter does not work under disk-util and disk-wait. #2016
Comments
@NyBT-spec thanks for reporting - this is a newly discovered issue, and I see the same behaviour in the latest version of the code too:
I'll take a closer look when I can, but to answer your questions: at this stage there is no fix available. |
Heh, scanning the code 1 minute after pressing 'Comment' I see the reason for this. Have a look at the code (python) in prepare_metrics() - around line 688 in the main git branch, which looks like this:
What this is saying is that some plugins are "special" and the filtering options (like -D in your cases) are manually associated with these plugins. If you change the set (plugin names) in that second line, to be like this:
you'll see the behavior you seek from --disk-util I believe. Not sure how best to solve this, this is a bit of a hangover from the original dstat mechanisms. Perhaps an extension to the /etc/pcp/dstat/disk config format to identify which command line option (-D, -C, etc) provides the filter string for that plugin. Anyway, hopefully this is enough (manually editing the script for now) to get you the functionality you need today, and we can think about cleaner solutions in time. |
Thanks, it works fine like this: |
I installed pcp-dstat (5.3.7) from redhat 8 repo
The device filter does not work under --disk-util and --disk-wait.
working example:
root# dstat --disk-tps 1 1 -D scinia
-dsk/scinia
#read #writ
0 0
non-working sample:
root# dstat --disk-util 1 1 -D scinia
sda--scin-scin-scin-scin-scin-scin-scin-scin-scin-scin-scin-scin-scin-scin-scin-scin-scin-scin
util:util:util:util:util:util:util:util:util:util:util:util:util:util:util:util:util:util:util
0.10: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0: 0
root# dstat --disk-wait 1 1 -D scinia
---sda------scinia----scinib----scinic----scinid----scinie----scinif----scinig----scinih----scinii----scinij----scinik----scinil----scinim----scinin----scinio----scinip----sciniq----scinir-
rawa wawa:rawa wawa:rawa wawa:rawa wawa:rawa wawa:rawa wawa:rawa wawa:rawa wawa:rawa wawa:rawa wawa:rawa wawa:rawa wawa:rawa wawa:rawa wawa:rawa wawa:rawa wawa:rawa wawa:rawa wawa:rawa wawa
0 0.00: 0 0: 0 0: 0 0: 0 0: 0 0: 0 0: 0 0: 0 0: 0 0: 0 0: 0 0: 0 0: 0 0: 0 0: 0 0: 0 0: 0 0: 0 0
Is there any way I can fix this or do I have to wait for a fix?
The text was updated successfully, but these errors were encountered: