Ben Kochie 
							
						 
						
							
							
							
							
								
							
							
								226c80c83c 
								
							 
						 
						
							
							
								
								Add filesystem include flags  
							
							... 
							
							
							
							Add support for allow lists of filesystem mount points and filesystem
types. This allows for less messy regexps when you want to target only
specific lists of mount points or filesystem types.
Signed-off-by: Ben Kochie <superq@gmail.com> 
							
						 
						
							2024-12-14 14:14:54 +01:00 
							
								 
							
						 
					 
				
					
						
							
							
								Ben Kochie 
							
						 
						
							
							
								
								
							
							
							
								
							
							
								090957658e 
								
							 
						 
						
							
							
								
								Update logging ( #3097 )  
							
							... 
							
							
							
							Switch from promlog/go-kit to promslog/slog for logging.
* Update Go build to 1.23.
Signed-off-by: Ben Kochie <superq@gmail.com> 
							
						 
						
							2024-09-11 10:51:28 +02:00 
							
								 
							
						 
					 
				
					
						
							
							
								Tobias Klauser 
							
						 
						
							
							
								
								
							
							
							
								
							
							
								a8ebe3519e 
								
							 
						 
						
							
							
								
								collector: use ByteSliceToString from golang.org/x/sys/unix  
							
							... 
							
							
							
							Use unix.ByteSliceToString to convert Utsname []byte fields to strings.
This also allows to drop the bytesToString helper which serves the same
purpose and matches ByteSliceToString's implementation.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch> 
							
						 
						
							2022-05-23 15:44:16 +02:00 
							
								 
							
						 
					 
				
					
						
							
							
								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> 
							
						 
						
							2021-12-01 11:21:31 +01:00 
							
								 
							
						 
					 
				
					
						
							
							
								Julien Pivotto 
							
						 
						
							
							
								
								
							
							
							
								
							
							
								68a6c78c0d 
								
							 
						 
						
							
							
								
								Update go to 1.17 ( #2159 )  
							
							... 
							
							
							
							Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu> 
							
						 
						
							2021-10-03 13:35:24 +02:00 
							
								 
							
						 
					 
				
					
						
							
							
								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> 
							
						 
						
							2021-06-03 10:47:41 +02:00 
							
								 
							
						 
					 
				
					
						
							
							
								Frederic Hemberger 
							
						 
						
							
							
							
							
								
							
							
								39124626cd 
								
							 
						 
						
							
							
								
								Rename collector.filesystem flags to match other collectors  
							
							... 
							
							
							
							Ref: #1743 
Fixes : #1994 
Signed-off-by: Frederic Hemberger <mail@frederic-hemberger.de> 
							
						 
						
							2021-03-24 21:01:10 +01:00 
							
								 
							
						 
					 
				
					
						
							
							
								David O'Rourke 
							
						 
						
							
							
							
							
								
							
							
								03450a4d7d 
								
							 
						 
						
							
							
								
								filesystem_freebsd: Use bytesToString to get label values  
							
							... 
							
							
							
							Signed-off-by: David O'Rourke <david.orourke@gmail.com> 
							
						 
						
							2020-06-03 11:33:10 +02:00 
							
								 
							
						 
					 
				
					
						
							
							
								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> 
							
						 
						
							2020-06-03 11:33:10 +02:00 
							
								 
							
						 
					 
				
					
						
							
							
								Ben Kochie 
							
						 
						
							
							
								
								
							
							
							
								
							
							
								b532c81da7 
								
							 
						 
						
							
							
								
								Update filesystem freebsd  
							
							... 
							
							
							
							Upstream x/sys/unix changed types.
Signed-off-by: Ben Kochie <superq@gmail.com> 
							
						 
						
							2020-05-14 21:02:21 +02:00 
							
								 
							
						 
					 
				
					
						
							
							
								Ben Ye 
							
						 
						
							
							
							
							
								
							
							
								2477c5c67d 
								
							 
						 
						
							
							
								
								switch to go-kit/log ( #1575 )  
							
							... 
							
							
							
							Signed-off-by: yeya24 <yb532204897@gmail.com> 
							
						 
						
							2019-12-31 17:19:37 +01:00 
							
								 
							
						 
					 
				
					
						
							
							
								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> 
							
						 
						
							2019-07-19 16:51:17 +02:00 
							
								 
							
						 
					 
				
					
						
							
							
								Jürgen Hötzel 
							
						 
						
							
							
							
							
								
							
							
								de0632c2e9 
								
							 
						 
						
							
							
								
								Fix memory corruption when number of filesystems > 16 ( #900 )  
							
							... 
							
							
							
							Signed-off-by: Juergen Hoetzel <juergen@archlinux.org> 
							
						 
						
							2018-04-16 12:39:15 +02:00 
							
								 
							
						 
					 
				
					
						
							
							
								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. 
							
						 
						
							2017-02-28 16:04:25 -04:00 
							
								 
							
						 
					 
				
					
						
							
							
								Tobias Schmidt 
							
						 
						
							
							
							
							
								
							
							
								c703435790 
								
							 
						 
						
							
							
								
								Fix all open go lint and vet issues  
							
							
							
						 
						
							2017-02-28 13:05:38 -04:00 
							
								 
							
						 
					 
				
					
						
							
							
								Johannes 'fish' Ziemke 
							
						 
						
							
							
							
							
								
							
							
								4c9131b7d8 
								
							 
						 
						
							
							
								
								Make sure we only return one metric per mounted fs  
							
							
							
						 
						
							2017-01-04 16:45:25 +01:00 
							
								 
							
						 
					 
				
					
						
							
							
								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. 
							
						 
						
							2016-12-26 23:06:17 +01:00 
							
								 
							
						 
					 
				
					
						
							
							
								Nick Owens 
							
						 
						
							
							
							
							
								
							
							
								b58d1fc971 
								
							 
						 
						
							
							
								
								collector: add openbsd suport to filesystem colector  
							
							
							
						 
						
							2015-11-01 19:17:11 -08:00 
							
								 
							
						 
					 
				
					
						
							
							
								Nick Owens 
							
						 
						
							
							
							
							
								
							
							
								eb79937340 
								
							 
						 
						
							
							
								
								switch to github.com/prometheus/common/log for logging  
							
							
							
						 
						
							2015-10-30 13:20:06 -07:00 
							
								 
							
						 
					 
				
					
						
							
							
								Kirk Russell 
							
						 
						
							
							
							
							
								
							
							
								88c30557c0 
								
							 
						 
						
							
							
								
								Fixed minor compile time error  
							
							
							
						 
						
							2015-10-01 18:42:25 -04:00 
							
								 
							
						 
					 
				
					
						
							
							
								Matthias Rampke 
							
						 
						
							
							
							
							
								
							
							
								2d0d72b97d 
								
							 
						 
						
							
							
								
								Add license headers to all code files.  
							
							
							
						 
						
							2015-09-26 17:44:39 +02:00 
							
								 
							
						 
					 
				
					
						
							
							
								Martín Ferrari 
							
						 
						
							
							
							
							
								
							
							
								dace6dc48b 
								
							 
						 
						
							
							
								
								Fix issues from code review, and split common code into filesystem_common.go.  
							
							
							
						 
						
							2015-09-16 16:34:34 +03:00 
							
								 
							
						 
					 
				
					
						
							
							
								Martín Ferrari 
							
						 
						
							
							
							
							
								
							
							
								8c2316e8a9 
								
							 
						 
						
							
							
								
								Revamp the filesystem collector to use throw-away ConstMetrics.  
							
							
							
						 
						
							2015-09-15 12:17:15 +00:00 
							
								 
							
						 
					 
				
					
						
							
							
								Siavash Safi 
							
						 
						
							
							
							
							
								
							
							
								dddb273dfc 
								
							 
						 
						
							
							
								
								Fix some error messages.  
							
							
							
						 
						
							2015-07-14 13:58:54 +04:30 
							
								 
							
						 
					 
				
					
						
							
							
								Siavash Safi 
							
						 
						
							
							
							
							
								
							
							
								78bf63ffd8 
								
							 
						 
						
							
							
								
								filesystem: Code cleanup.  
							
							
							
						 
						
							2015-07-14 13:58:50 +04:30 
							
								 
							
						 
					 
				
					
						
							
							
								Siavash Safi 
							
						 
						
							
							
							
							
								
							
							
								ccbea34465 
								
							 
						 
						
							
							
								
								filesystem: Remove unused const variable.  
							
							
							
						 
						
							2015-07-14 13:58:49 +04:30 
							
								 
							
						 
					 
				
					
						
							
							
								Siavash Safi 
							
						 
						
							
							
							
							
								
							
							
								f7563fe7a2 
								
							 
						 
						
							
							
								
								Remove config from collectors.  
							
							
							
						 
						
							2015-07-14 13:58:48 +04:30 
							
								 
							
						 
					 
				
					
						
							
							
								Siavash Safi 
							
						 
						
							
							
							
							
								
							
							
								6ef3b7a4e8 
								
							 
						 
						
							
							
								
								Add filesystem collector for FreeBSD.  
							
							
							
						 
						
							2015-07-14 13:58:46 +04:30