Comments (10)
@NightTsarina Well, it's seems to confuse users. Both here debian and over in #2875 gentoo users.
Also I'd argue, if there is a good case to change the defaults, let's change them here
from node_exporter.
It doesn't make sense to exclude /mnt
and /media
. Those locations are still mounting real, valid, filesystems. The exporter has always had the goal to monitor all valid fliesystems. Temporary and removable filesystems still need monitoring.
from node_exporter.
The Debian and Ubuntu packages of prometheus-node-exporter have a patch which adds /mnt
to the list of default excluded mountpoints.
Check your --collector.filesystem.mount-points-exclude
flag.
from node_exporter.
WTF, Debian.
from node_exporter.
@SuperQ Overriding the default was originally moved from a config file to a patch in https://salsa.debian.org/go-team/packages/prometheus-node-exporter/-/commit/e0cd3e5f325bd60d9c29625b66057801f053cc1f
/mnt
and /media
were added in https://salsa.debian.org/go-team/packages/prometheus-node-exporter/-/commit/affc87fdacb8c9e3a75c51f55b27134dcdaa3d2e
cf. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=908811
That bug also mentions this, which is no longer true:
it is not the simplest, but in the default file you have the
documentation on how to do it, along with the current default value:
The flag default documentation / comments were removed from /etc/default/prometheus-node-exporter
(and all other exporters packaged by Debian) since they changed too frequently and were becoming too burdensome to keep updated.
from node_exporter.
Thanks for quick advice @dswarbrick !
You are correct..
It turned out Ubuntu default configuration excludes /mnt/
# Regexp of filesystem types to exclude for filesystem collector.
# --collector.filesystem.mount-points-exclude="^/(dev|proc|run|sys|mnt|media|var/lib/docker/.+)($|/)"
So I had to edit /etc/default/prometheus-node-exporter
and override the default with
ARGS="--collector.filesystem.mount-points-exclude=\"^/(dev|proc|run|sys|media|var/lib/docker/.+)($|/)\""
from node_exporter.
@NightTsarina hrmm.. can you explain why this was moved to a patch?
from node_exporter.
This was added in 2018, reflecting the standard usage on Debian systems. The FHS defines those directories as:
/media
: Mount point for removable media/mnt
: Mount point for a temporarily mounted filesystem
So it makes sense to exclude them by default. The decision to patch instead of a default was just to provide a better experience for most Debian users. It does not seem like such a contentious decision to me? After all, it can always be changed as needed...
from node_exporter.
Sorry, I forgot to get back to this issue...
@NightTsarina Well, it's seems to confuse users. Both here debian and over in #2875 gentoo users. Also I'd argue, if there is a good case to change the defaults, let's change them here
I'd love to upstream this, but are you guys willing to accept this change?
BTW, I'd point out that in both cases, the users were using /mnt
for non-temporary filesystems, which is not the intended usage for that directory.
It doesn't make sense to exclude
/mnt
and/media
. Those locations are still mounting real, valid, filesystems. The exporter has always had the goal to monitor all valid fliesystems. Temporary and removable filesystems still need monitoring.
I can see your point, but I also think of the case where I would not want the node exporter to be exporting metrics about a USB stick or a temporary network mount and polluting the server. Plus, I think at some point the node exporter got stuck when querying a broken/slow filesystem, but I might be mistaken.
from node_exporter.
Stuck mountpoint handling (mostly for things like NFS) was added in v0.17.0.
from node_exporter.
Related Issues (20)
- Handle thermal_zone errors gracefully HOT 3
- `node_os_info` does not update `build_id` HOT 9
- When is v.1.8.0 coming? Wanted to pick up CVE fixes that are already in master HOT 1
- Unresolved vulnerability (CVE-2023-48795) in last release 1.7.0 HOT 2
- Node exporter not picking up sensors output and hence sensors metrics are not exported HOT 1
- docker image does not recognise timezone appropriately HOT 7
- kernel: node_exporter: page allocation failure. order:5, mode:0xd0 HOT 1
- CIFS unavailability causes abnormal "up" metric value HOT 1
- Feature request: Please sign your releases HOT 2
- Proposal for release a new minor/patch version HOT 1
- Disk and filesystem error metrics
- How does node-exporter collect information about whether the operating system is CentOS or Ubuntu? HOT 1
- [macOS 14.4.1] “node_exporter” is damaged and can’t be opened. You should move it to the Trash. HOT 10
- IP fragmentation metrics stats missing HOT 4
- node_exporter can't start HOT 2
- node-exporter can't start HOT 1
- NFSd Error HOT 8
- missing battery metrics on debian - power_supply class charge_control_end_threshold ": no such device" HOT 2
- node_filesystem_size_bytes reporting incorrect values on Ubuntu 22.04 LTS HOT 1
- Netclass collector bug HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node_exporter.