mirror of
				https://github.com/prometheus/node_exporter.git
				synced 2025-08-20 18:33:52 -07:00 
			
		
		
		
	Update fixtures
* Add oom_kill to fixture. * Update e2e outputs. * Put regexp in order. Signed-off-by: Ben Kochie <superq@gmail.com>
This commit is contained in:
		
							parent
							
								
									499c342fed
								
							
						
					
					
						commit
						cf3edadcbb
					
				| 
						 | 
				
			
			@ -2790,6 +2790,9 @@ node_sockstat_sockets_used 229
 | 
			
		|||
# HELP node_textfile_scrape_error 1 if there was an error opening or reading a file, 0 otherwise
 | 
			
		||||
# TYPE node_textfile_scrape_error gauge
 | 
			
		||||
node_textfile_scrape_error 0
 | 
			
		||||
# HELP node_vmstat_oom_kill /proc/vmstat information field oom_kill.
 | 
			
		||||
# TYPE node_vmstat_oom_kill untyped
 | 
			
		||||
node_vmstat_oom_kill 0
 | 
			
		||||
# HELP node_vmstat_pgfault /proc/vmstat information field pgfault.
 | 
			
		||||
# TYPE node_vmstat_pgfault untyped
 | 
			
		||||
node_vmstat_pgfault 2.320168809e+09
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2739,6 +2739,7 @@ node_scrape_collector_success{collector="qdisc"} 1
 | 
			
		|||
node_scrape_collector_success{collector="sockstat"} 1
 | 
			
		||||
node_scrape_collector_success{collector="stat"} 1
 | 
			
		||||
node_scrape_collector_success{collector="textfile"} 1
 | 
			
		||||
node_scrape_collector_success{collector="vmstat"} 1
 | 
			
		||||
node_scrape_collector_success{collector="wifi"} 1
 | 
			
		||||
node_scrape_collector_success{collector="xfs"} 1
 | 
			
		||||
node_scrape_collector_success{collector="zfs"} 1
 | 
			
		||||
| 
						 | 
				
			
			@ -2789,6 +2790,27 @@ node_sockstat_sockets_used 229
 | 
			
		|||
# HELP node_textfile_scrape_error 1 if there was an error opening or reading a file, 0 otherwise
 | 
			
		||||
# TYPE node_textfile_scrape_error gauge
 | 
			
		||||
node_textfile_scrape_error 0
 | 
			
		||||
# HELP node_vmstat_oom_kill /proc/vmstat information field oom_kill.
 | 
			
		||||
# TYPE node_vmstat_oom_kill untyped
 | 
			
		||||
node_vmstat_oom_kill 0
 | 
			
		||||
# HELP node_vmstat_pgfault /proc/vmstat information field pgfault.
 | 
			
		||||
# TYPE node_vmstat_pgfault untyped
 | 
			
		||||
node_vmstat_pgfault 2.320168809e+09
 | 
			
		||||
# HELP node_vmstat_pgmajfault /proc/vmstat information field pgmajfault.
 | 
			
		||||
# TYPE node_vmstat_pgmajfault untyped
 | 
			
		||||
node_vmstat_pgmajfault 507162
 | 
			
		||||
# HELP node_vmstat_pgpgin /proc/vmstat information field pgpgin.
 | 
			
		||||
# TYPE node_vmstat_pgpgin untyped
 | 
			
		||||
node_vmstat_pgpgin 7.344136e+06
 | 
			
		||||
# HELP node_vmstat_pgpgout /proc/vmstat information field pgpgout.
 | 
			
		||||
# TYPE node_vmstat_pgpgout untyped
 | 
			
		||||
node_vmstat_pgpgout 1.541180581e+09
 | 
			
		||||
# HELP node_vmstat_pswpin /proc/vmstat information field pswpin.
 | 
			
		||||
# TYPE node_vmstat_pswpin untyped
 | 
			
		||||
node_vmstat_pswpin 1476
 | 
			
		||||
# HELP node_vmstat_pswpout /proc/vmstat information field pswpout.
 | 
			
		||||
# TYPE node_vmstat_pswpout untyped
 | 
			
		||||
node_vmstat_pswpout 35045
 | 
			
		||||
# HELP node_wifi_interface_frequency_hertz The current frequency a WiFi interface is operating at, in hertz.
 | 
			
		||||
# TYPE node_wifi_interface_frequency_hertz gauge
 | 
			
		||||
node_wifi_interface_frequency_hertz{device="wlan0"} 2.412e+09
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -117,3 +117,4 @@ thp_zero_page_alloc_failed 20
 | 
			
		|||
balloon_inflate 0
 | 
			
		||||
balloon_deflate 0
 | 
			
		||||
balloon_migrate 0
 | 
			
		||||
oom_kill 0
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -32,7 +32,7 @@ const (
 | 
			
		|||
)
 | 
			
		||||
 | 
			
		||||
var (
 | 
			
		||||
	vmStatFields = kingpin.Flag("collector.vmstat.fields", "Regexp of fields to return for vmstat collector.").Default("^(pgpg|pswp|pg.*fault|oom_kill).*").String()
 | 
			
		||||
	vmStatFields = kingpin.Flag("collector.vmstat.fields", "Regexp of fields to return for vmstat collector.").Default("^(oom_kill|pgpg|pswp|pg.*fault).*").String()
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
type vmStatCollector struct {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue