Skip to content
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

Ignore partitions on NVME devices by default #268

Merged
merged 3 commits into from
Jul 11, 2016
Merged

Ignore partitions on NVME devices by default #268

merged 3 commits into from
Jul 11, 2016

Conversation

h3po
Copy link
Contributor

@h3po h3po commented Jul 9, 2016

The convention of the linux driver is nvme($device)n($namespace)p($partition). On *bsd it seems to be different, using "ns" instead of "n" as the namespace separator.

@brian-brazil

edit: here's some lines from my /proc/diskstats for a possible test fixture

 259       0 nvme0n1 47114 4 4643973 21650 1078320 43950 39451633 1011053 0 222766 1032546
 259       1 nvme0n1p1 1140 0 9370 16 1 0 1 0 0 16 16
 259       2 nvme0n1p2 45914 4 4631243 21626 1036885 43950 39451632 919480 0 131580 940970

The convention of the linux driver is nvme($device)n($namespace)p($partition). On *bsd it seems to be different, using "ns" instead of "n" as the namespace separator.
@SuperQ
Copy link
Member

SuperQ commented Jul 9, 2016

Please add your examples to the fixture (collector/fixtures/proc/diskstats)

@h3po
Copy link
Contributor Author

h3po commented Jul 9, 2016

Whoops I didn't realize there's the end2end check

@SuperQ
Copy link
Member

SuperQ commented Jul 9, 2016

👍 Nice.

@matthiasr
Copy link
Contributor

👍

@beorn7 beorn7 merged commit d48453a into prometheus:master Jul 11, 2016
@SuperQ SuperQ mentioned this pull request Nov 6, 2016
@h3po h3po deleted the patch-1 branch December 12, 2016 11:43
tamcore pushed a commit to gitgrave/node_exporter that referenced this pull request Oct 22, 2024
Enable golint testing for style fixes.
* Add exceptions to a couple places, mostly proc stat names.
* Fix up various issues.
* Update Makefile.common from upstream Prometheus.
* Remove default-enabled modules from golangci-lint config.

Signed-off-by: Ben Kochie <superq@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants