Lapo Luchini
3136901a74
Ignore filesystems flagged as MNT_IGNORE. ( #2227 )
...
* Ignore filesystems flagges as MNT_IGNORE.
Closes #2152 .
Signed-off-by: Lapo Luchini <lapo@lapo.it>
3 years ago
Julien Pivotto
68a6c78c0d
Update go to 1.17 ( #2159 )
...
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
3 years ago
Ben Kochie
3bc9a93c20
Add ErrorLog plumbing to promhttp
...
Fix the error logging of the promhttp handler by connecting it to the
promlog setup.
* Switch to go-kit/log.
* Cleanup CHANGELOG.
Fixes: https://github.com/prometheus/node_exporter/issues/1886
Signed-off-by: Ben Kochie <superq@gmail.com>
4 years ago
Frederic Hemberger
39124626cd
Rename `collector.filesystem` flags to match other collectors
...
Ref: #1743
Fixes : #1994
Signed-off-by: Frederic Hemberger <mail@frederic-hemberger.de>
4 years ago
David O'Rourke
03450a4d7d
filesystem_freebsd: Use bytesToString to get label values
...
Signed-off-by: David O'Rourke <david.orourke@gmail.com>
5 years ago
David O'Rourke
4c06e33c23
filesystem_freebsd: Fix label values
...
We must know the length of the various filesystem C strings before
turning them from a byte array into a Go string, otherwise our Go
strings could contain null bytes, corrupting the label values.
Signed-off-by: David O'Rourke <david.orourke@gmail.com>
5 years ago
Ben Kochie
b532c81da7
Update filesystem freebsd
...
Upstream x/sys/unix changed types.
Signed-off-by: Ben Kochie <superq@gmail.com>
5 years ago
Ben Ye
2477c5c67d
switch to go-kit/log ( #1575 )
...
Signed-off-by: yeya24 <yb532204897@gmail.com>
5 years ago
dt-rush
5d3e2ce2ef
properly strip path.rootfs from mountpoint labels ( #1421 )
...
Change-type: patch
Connects-to: #1418
Signed-off-by: dt-rush <nickp@balena.io>
5 years ago
Jürgen Hötzel
de0632c2e9
Fix memory corruption when number of filesystems > 16 ( #900 )
...
Signed-off-by: Juergen Hoetzel <juergen@archlinux.org>
7 years ago
Tobias Schmidt
922e74d58f
Remove unnecessarily named return variables
...
Named return variables should only be used to describe the returned type
further, e.g. `err error` doesn't add any new information and is just
stutter.
8 years ago
Tobias Schmidt
c703435790
Fix all open go lint and vet issues
8 years ago
Johannes 'fish' Ziemke
4c9131b7d8
Make sure we only return one metric per mounted fs
8 years ago
Dominik Honnef
0f6191987e
Implement file systems on FreeBSD without cgo
...
The code may also work for other BSDs, but I don't have access to those
for testing.
8 years ago
Nick Owens
b58d1fc971
collector: add openbsd suport to filesystem colector
9 years ago
Nick Owens
eb79937340
switch to github.com/prometheus/common/log for logging
9 years ago
Kirk Russell
88c30557c0
Fixed minor compile time error
9 years ago
Matthias Rampke
2d0d72b97d
Add license headers to all code files.
9 years ago
Martín Ferrari
dace6dc48b
Fix issues from code review, and split common code into filesystem_common.go.
9 years ago
Martín Ferrari
8c2316e8a9
Revamp the filesystem collector to use throw-away ConstMetrics.
9 years ago
Siavash Safi
dddb273dfc
Fix some error messages.
10 years ago
Siavash Safi
78bf63ffd8
filesystem: Code cleanup.
10 years ago
Siavash Safi
ccbea34465
filesystem: Remove unused const variable.
10 years ago
Siavash Safi
f7563fe7a2
Remove config from collectors.
10 years ago
Siavash Safi
6ef3b7a4e8
Add filesystem collector for FreeBSD.
10 years ago