mirror of
				https://github.com/prometheus/node_exporter.git
				synced 2025-08-20 18:33:52 -07:00 
			
		
		
		
	Fix flag name in textfile.go
This commit is contained in:
		
							parent
							
								
									f34e5374e0
								
							
						
					
					
						commit
						f74de8943b
					
				| 
						 | 
				
			
			@ -54,7 +54,7 @@ func NewTextFileCollector() (Collector, error) {
 | 
			
		|||
	if c.path == "" {
 | 
			
		||||
		// This collector is enabled by default, so do not fail if
 | 
			
		||||
		// the flag is not passed.
 | 
			
		||||
		log.Infof("No directory specified, see --textfile.directory")
 | 
			
		||||
		log.Infof("No directory specified, see --collector.textfile.directory")
 | 
			
		||||
	} else {
 | 
			
		||||
		prometheus.SetMetricFamilyInjectionHook(c.parseTextFiles)
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue