Skip to content

Also ignore vda1 and friends#44

Merged
brian-brazil merged 1 commit intoprometheus:masterfrom
kormat:master
Feb 18, 2015
Merged

Also ignore vda1 and friends#44
brian-brazil merged 1 commit intoprometheus:masterfrom
kormat:master

Conversation

@kormat
Copy link
Contributor

@kormat kormat commented Feb 18, 2015

Whatever virtualization bigv.io use, it exposes block devices as /dev/vda{,1,2}. As we only care about stats for the whole block devices, and not partitions, add vd? partitions to ignore list.

I'm unsure whether we should also ignore /dev/fd? and /dev/sr?. There is a case that the latter might still be useful, but the former is really dubious. Thoughts?

@juliusv @brian-brazil

@juliusv
Copy link
Member

juliusv commented Feb 18, 2015

👍 and ok with also ignoring /dev/fd?. I have no opinion on /dev/srv? :)

Btw., just noticing that we're still using camelCase flag names here instead of what we're standardizing on in other components. Just a heads-up, that'll change soon.

@brian-brazil
Copy link
Contributor

We'll likely need something a bit better here long term, /dev/xdva1 is the main block device on AWS for example. I think /sys lets you figure out the actual block devices before partitions, rather than us having to fudge it with a regex.

brian-brazil added a commit that referenced this pull request Feb 18, 2015
Also ignore vda1 and friends
@brian-brazil brian-brazil merged commit 6b5a1e7 into prometheus:master Feb 18, 2015
@kormat
Copy link
Contributor Author

kormat commented Feb 18, 2015

@brian-brazil - That would be ideal, yes. It looks like the contents of /sys/block/ would help, as partitions aren't listed. However, you still have loop and devicemapper entries. Damn abstractions not being leaky in just the way you were hoping.

tamcore pushed a commit to gitgrave/node_exporter that referenced this pull request Oct 22, 2024
This removes top level 'New<Thing>' constructor functions
in order to make the API slightly smaller and more consistent.
Fixes issue prometheus#44

Also includes some minor readme and godoc updates.

Signed-off-by: Paul Gier <pgier@redhat.com>
philipgough pushed a commit to philipgough/node_exporter that referenced this pull request Jan 8, 2025
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.

3 participants