[root@prome_master_01 tgzs]# curl -s localhost:9100/metrics |grep node_ |head -20# HELP node_arp_entries ARP entries by device# TYPE node_arp_entries gauge
node_arp_entries{device="eth0"} 3# HELP node_boot_time_seconds Node boot time, in unixtime.# TYPE node_boot_time_seconds gauge
node_boot_time_seconds 1.616987084e+09
# HELP node_context_switches_total Total number of context switches.# TYPE node_context_switches_total counter
node_context_switches_total 2.105979e+06
# HELP node_cooling_device_cur_state Current throttle state of the cooling device# TYPE node_cooling_device_cur_state gauge
node_cooling_device_cur_state{name="0",type="Processor"} 0
node_cooling_device_cur_state{name="1",type="Processor"} 0
node_cooling_device_cur_state{name="2",type="Processor"} 0
node_cooling_device_cur_state{name="3",type="Processor"} 0# HELP node_cooling_device_max_state Maximum throttle state of the cooling device# TYPE node_cooling_device_max_state gauge
node_cooling_device_max_state{name="0",type="Processor"} 0
node_cooling_device_max_state{name="1",type="Processor"} 0
node_cooling_device_max_state{name="2",type="Processor"} 0
太慢:Prolonged runtime that exceeds the Prometheus scrape_interval or scrape_timeout
太多资源开销: Significant resource demands on the host
禁用golang sdk 指标
使用 --web.disable-exporter-metrics
promhttp_ 代表访问/metrics 的http情况
[root@prome_master_01 tgzs]# curl -s localhost:9100/metrics |grep promhttp_# HELP promhttp_metric_handler_errors_total Total number of internal errors encountered by the promhttp metric handler.# TYPE promhttp_metric_handler_errors_total counter
promhttp_metric_handler_errors_total{cause="encoding"} 0
promhttp_metric_handler_errors_total{cause="gathering"} 0# HELP promhttp_metric_handler_requests_in_flight Current number of scrapes being served.# TYPE promhttp_metric_handler_requests_in_flight gauge
promhttp_metric_handler_requests_in_flight 1
# HELP promhttp_metric_handler_requests_total Total number of scrapes by HTTP status code.# TYPE promhttp_metric_handler_requests_total counter
promhttp_metric_handler_requests_total{code="200"} 8
promhttp_metric_handler_requests_total{code="500"} 0
promhttp_metric_handler_requests_total{code="503"} 0
go_代表 goruntime 信息等
# HELP go_goroutines Number of goroutines that currently exist.# TYPE go_goroutines gauge
go_goroutines 7
# HELP go_info Information about the Go environment.# TYPE go_info gauge
go_info{version="go1.15.8"} 1# HELP go_memstats_alloc_bytes Number of bytes allocated and still in use.# TYPE go_memstats_alloc_bytes gauge
go_memstats_alloc_bytes 2.781752e+06
process_代表 进程信息等
# HELP process_cpu_seconds_total Total user and system CPU time spent in seconds.# TYPE process_cpu_seconds_total counterprocess_cpu_seconds_total0.54# HELP process_max_fds Maximum number of open file descriptors.# TYPE process_max_fds gaugeprocess_max_fds1024# HELP process_open_fds Number of open file descriptors.# TYPE process_open_fds gaugeprocess_open_fds9# HELP process_resident_memory_bytes Resident memory size in bytes.# TYPE process_resident_memory_bytes gaugeprocess_resident_memory_bytes1.5720448e+07