mirror of
				https://github.com/prometheus/node_exporter.git
				synced 2025-08-20 18:33:52 -07:00 
			
		
		
		
	node_exporter has reasonable defaults so it is able to start without explicit config. Such a setup is common in /usr/-only images where /etc/ is an empty tmpfs upon boot. Signed-off-by: Nils K <24257556+septatrix@users.noreply.github.com>
		
			
				
	
	
		
			14 lines
		
	
	
		
			310 B
		
	
	
	
		
			Desktop File
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			310 B
		
	
	
	
		
			Desktop File
		
	
	
	
	
	
[Unit]
 | 
						|
Description=Node Exporter
 | 
						|
Requires=node_exporter.socket
 | 
						|
 | 
						|
[Service]
 | 
						|
User=node_exporter
 | 
						|
# Fallback when environment file does not exist
 | 
						|
Environment=OPTIONS=
 | 
						|
EnvironmentFile=-/etc/sysconfig/node_exporter
 | 
						|
ExecStart=/usr/sbin/node_exporter --web.systemd-socket $OPTIONS
 | 
						|
 | 
						|
[Install]
 | 
						|
WantedBy=multi-user.target
 |