Kubernetes CoreDNS 本地 pod 名称查找失败

时间:2021-04-15 05:17:45

标签: kubernetes coredns k3s

我正面临此处报告的确切问题:https://github.com/bitly/oauth2_proxy/issues/316

(从问题说明中,罪魁祸首被确定为 Kubernetes,在此论坛上发布查询。请告知我是否应该在其他论坛上发布)。

请求专家就我应该考虑调试/修复此问题的可能领域提供建议(已尝试启用 coreDNS 日志 - 未看到任何错误报告)

以下是我的 kubernetes 部署的详细信息:

版本:k3s 版本 v1.19.7+k3s1 (5a00e38d) 我有一个控制器 pod,它接收用户请求并在内部调用 oauth2-proxy pod API 来获取用户信息,如下所示:http://oauth2-proxy:4180/oauth2/userinfo。

请求率约为 250 个请求/秒。其中大约 1-2% 的请求会导致上述失败。

出现问题时的coreDNS指标如下:

# HELP coredns_build_info A metric with a constant '1' value labeled by version, revision, and goversion from which CoreDNS was built.
# TYPE coredns_build_info gauge
coredns_build_info{goversion="go1.14.1",revision="1766568",version="1.6.9"} 1
# HELP coredns_cache_hits_total The count of cache hits.
# TYPE coredns_cache_hits_total counter
coredns_cache_hits_total{server="dns://:53",type="denial"} 2.739613e+06
coredns_cache_hits_total{server="dns://:53",type="success"} 1.865138e+06
# HELP coredns_cache_misses_total The count of cache misses.
# TYPE coredns_cache_misses_total counter
coredns_cache_misses_total{server="dns://:53"} 44329
# HELP coredns_cache_size The number of elements in the cache.
# TYPE coredns_cache_size gauge
coredns_cache_size{server="dns://:53",type="denial"} 77
coredns_cache_size{server="dns://:53",type="success"} 28
# HELP coredns_dns_request_count_total Counter of DNS requests made per zone, protocol and family.
# TYPE coredns_dns_request_count_total counter
coredns_dns_request_count_total{family="1",proto="udp",server="dns://:53",zone="."} 4.64908e+06
# HELP coredns_dns_request_duration_seconds Histogram of the time (in seconds) each request took.
# TYPE coredns_dns_request_duration_seconds histogram
coredns_dns_request_duration_seconds_bucket{server="dns://:53",type="A",zone=".",le="0.00025"} 971122
coredns_dns_request_duration_seconds_bucket{server="dns://:53",type="A",zone=".",le="0.0005"} 994938
coredns_dns_request_duration_seconds_bucket{server="dns://:53",type="A",zone=".",le="0.001"} 1.004508e+06
coredns_dns_request_duration_seconds_bucket{server="dns://:53",type="A",zone=".",le="0.002"} 1.008004e+06
coredns_dns_request_duration_seconds_bucket{server="dns://:53",type="A",zone=".",le="0.004"} 1.009709e+06
coredns_dns_request_duration_seconds_bucket{server="dns://:53",type="A",zone=".",le="0.008"} 1.010312e+06
coredns_dns_request_duration_seconds_bucket{server="dns://:53",type="A",zone=".",le="0.016"} 1.010378e+06
coredns_dns_request_duration_seconds_bucket{server="dns://:53",type="A",zone=".",le="0.032"} 1.010396e+06
coredns_dns_request_duration_seconds_bucket{server="dns://:53",type="A",zone=".",le="0.064"} 1.010416e+06
coredns_dns_request_duration_seconds_bucket{server="dns://:53",type="A",zone=".",le="0.128"} 1.010426e+06
coredns_dns_request_duration_seconds_bucket{server="dns://:53",type="A",zone=".",le="0.256"} 1.010435e+06
coredns_dns_request_duration_seconds_bucket{server="dns://:53",type="A",zone=".",le="0.512"} 1.010437e+06
coredns_dns_request_duration_seconds_bucket{server="dns://:53",type="A",zone=".",le="1.024"} 1.010437e+06
coredns_dns_request_duration_seconds_bucket{server="dns://:53",type="A",zone=".",le="2.048"} 1.01044e+06
coredns_dns_request_duration_seconds_bucket{server="dns://:53",type="A",zone=".",le="4.096"} 1.01044e+06
coredns_dns_request_duration_seconds_bucket{server="dns://:53",type="A",zone=".",le="8.192"} 1.01044e+06
coredns_dns_request_duration_seconds_bucket{server="dns://:53",type="A",zone=".",le="+Inf"} 1.01044e+06
coredns_dns_request_duration_seconds_sum{server="dns://:53",type="A",zone="."} 103.85576182600047
coredns_dns_request_duration_seconds_count{server="dns://:53",type="A",zone="."} 1.01044e+06
coredns_dns_request_duration_seconds_bucket{server="dns://:53",type="AAAA",zone=".",le="0.00025"} 3.531721e+06
coredns_dns_request_duration_seconds_bucket{server="dns://:53",type="AAAA",zone=".",le="0.0005"} 3.596072e+06
coredns_dns_request_duration_seconds_bucket{server="dns://:53",type="AAAA",zone=".",le="0.001"} 3.622555e+06
coredns_dns_request_duration_seconds_bucket{server="dns://:53",type="AAAA",zone=".",le="0.002"} 3.632102e+06
coredns_dns_request_duration_seconds_bucket{server="dns://:53",type="AAAA",zone=".",le="0.004"} 3.636625e+06
coredns_dns_request_duration_seconds_bucket{server="dns://:53",type="AAAA",zone=".",le="0.008"} 3.638267e+06
coredns_dns_request_duration_seconds_bucket{server="dns://:53",type="AAAA",zone=".",le="0.016"} 3.638398e+06
coredns_dns_request_duration_seconds_bucket{server="dns://:53",type="AAAA",zone=".",le="0.032"} 3.638402e+06
coredns_dns_request_duration_seconds_bucket{server="dns://:53",type="AAAA",zone=".",le="0.064"} 3.63841e+06
coredns_dns_request_duration_seconds_bucket{server="dns://:53",type="AAAA",zone=".",le="0.128"} 3.638419e+06
coredns_dns_request_duration_seconds_bucket{server="dns://:53",type="AAAA",zone=".",le="0.256"} 3.638432e+06
coredns_dns_request_duration_seconds_bucket{server="dns://:53",type="AAAA",zone=".",le="0.512"} 3.638435e+06
coredns_dns_request_duration_seconds_bucket{server="dns://:53",type="AAAA",zone=".",le="1.024"} 3.638528e+06
coredns_dns_request_duration_seconds_bucket{server="dns://:53",type="AAAA",zone=".",le="2.048"} 3.638635e+06
coredns_dns_request_duration_seconds_bucket{server="dns://:53",type="AAAA",zone=".",le="4.096"} 3.638639e+06
coredns_dns_request_duration_seconds_bucket{server="dns://:53",type="AAAA",zone=".",le="8.192"} 3.638639e+06
coredns_dns_request_duration_seconds_bucket{server="dns://:53",type="AAAA",zone=".",le="+Inf"} 3.638639e+06
coredns_dns_request_duration_seconds_sum{server="dns://:53",type="AAAA",zone="."} 507.57683475097963
coredns_dns_request_duration_seconds_count{server="dns://:53",type="AAAA",zone="."} 3.638639e+06
coredns_dns_request_duration_seconds_bucket{server="dns://:53",type="other",zone=".",le="0.00025"} 0
coredns_dns_request_duration_seconds_bucket{server="dns://:53",type="other",zone=".",le="0.0005"} 0
coredns_dns_request_duration_seconds_bucket{server="dns://:53",type="other",zone=".",le="0.001"} 0
coredns_dns_request_duration_seconds_bucket{server="dns://:53",type="other",zone=".",le="0.002"} 0
coredns_dns_request_duration_seconds_bucket{server="dns://:53",type="other",zone=".",le="0.004"} 0
coredns_dns_request_duration_seconds_bucket{server="dns://:53",type="other",zone=".",le="0.008"} 0
coredns_dns_request_duration_seconds_bucket{server="dns://:53",type="other",zone=".",le="0.016"} 0
coredns_dns_request_duration_seconds_bucket{server="dns://:53",type="other",zone=".",le="0.032"} 1
coredns_dns_request_duration_seconds_bucket{server="dns://:53",type="other",zone=".",le="0.064"} 1
coredns_dns_request_duration_seconds_bucket{server="dns://:53",type="other",zone=".",le="0.128"} 1
coredns_dns_request_duration_seconds_bucket{server="dns://:53",type="other",zone=".",le="0.256"} 1
coredns_dns_request_duration_seconds_bucket{server="dns://:53",type="other",zone=".",le="0.512"} 1
coredns_dns_request_duration_seconds_bucket{server="dns://:53",type="other",zone=".",le="1.024"} 1
coredns_dns_request_duration_seconds_bucket{server="dns://:53",type="other",zone=".",le="2.048"} 1
coredns_dns_request_duration_seconds_bucket{server="dns://:53",type="other",zone=".",le="4.096"} 1
coredns_dns_request_duration_seconds_bucket{server="dns://:53",type="other",zone=".",le="8.192"} 1
coredns_dns_request_duration_seconds_bucket{server="dns://:53",type="other",zone=".",le="+Inf"} 1
coredns_dns_request_duration_seconds_sum{server="dns://:53",type="other",zone="."} 0.027538076
coredns_dns_request_duration_seconds_count{server="dns://:53",type="other",zone="."} 1
# HELP coredns_dns_request_size_bytes Size of the EDNS0 UDP buffer in bytes (64K for TCP).
# TYPE coredns_dns_request_size_bytes histogram
coredns_dns_request_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="0"} 0
coredns_dns_request_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="100"} 4.64779e+06
coredns_dns_request_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="200"} 4.64908e+06
coredns_dns_request_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="300"} 4.64908e+06
coredns_dns_request_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="400"} 4.64908e+06
coredns_dns_request_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="511"} 4.64908e+06
coredns_dns_request_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="1023"} 4.64908e+06
coredns_dns_request_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="2047"} 4.64908e+06
coredns_dns_request_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="4095"} 4.64908e+06
coredns_dns_request_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="8291"} 4.64908e+06
coredns_dns_request_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="16000"} 4.64908e+06
coredns_dns_request_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="32000"} 4.64908e+06
coredns_dns_request_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="48000"} 4.64908e+06
coredns_dns_request_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="64000"} 4.64908e+06
coredns_dns_request_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="+Inf"} 4.64908e+06
coredns_dns_request_size_bytes_sum{proto="udp",server="dns://:53",zone="."} 1.80501192e+08
coredns_dns_request_size_bytes_count{proto="udp",server="dns://:53",zone="."} 4.64908e+06
# HELP coredns_dns_request_type_count_total Counter of DNS requests per type, per zone.
# TYPE coredns_dns_request_type_count_total counter
coredns_dns_request_type_count_total{server="dns://:53",type="A",zone="."} 1.01044e+06
coredns_dns_request_type_count_total{server="dns://:53",type="AAAA",zone="."} 3.638639e+06
coredns_dns_request_type_count_total{server="dns://:53",type="other",zone="."} 1
# HELP coredns_dns_response_rcode_count_total Counter of response status codes.
# TYPE coredns_dns_response_rcode_count_total counter
coredns_dns_response_rcode_count_total{rcode="NOERROR",server="dns://:53",zone="."} 2.880304e+06
coredns_dns_response_rcode_count_total{rcode="NXDOMAIN",server="dns://:53",zone="."} 1.768776e+06
# HELP coredns_dns_response_size_bytes Size of the returned response in bytes.
# TYPE coredns_dns_response_size_bytes histogram
coredns_dns_response_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="0"} 0
coredns_dns_response_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="100"} 1.758348e+06
coredns_dns_response_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="200"} 4.648172e+06
coredns_dns_response_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="300"} 4.648624e+06
coredns_dns_response_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="400"} 4.648829e+06
coredns_dns_response_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="511"} 4.648833e+06
coredns_dns_response_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="1023"} 4.649076e+06
coredns_dns_response_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="2047"} 4.64908e+06
coredns_dns_response_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="4095"} 4.64908e+06
coredns_dns_response_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="8291"} 4.64908e+06
coredns_dns_response_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="16000"} 4.64908e+06
coredns_dns_response_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="32000"} 4.64908e+06
coredns_dns_response_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="48000"} 4.64908e+06
coredns_dns_response_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="64000"} 4.64908e+06
coredns_dns_response_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="+Inf"} 4.64908e+06
coredns_dns_response_size_bytes_sum{proto="udp",server="dns://:53",zone="."} 4.84099271e+08
coredns_dns_response_size_bytes_count{proto="udp",server="dns://:53",zone="."} 4.64908e+06
# HELP coredns_forward_max_concurrent_reject_count_total Counter of the number of queries rejected because the concurrent queries were at maximum.
# TYPE coredns_forward_max_concurrent_reject_count_total counter
coredns_forward_max_concurrent_reject_count_total 0
# HELP coredns_forward_request_count_total Counter of requests made per upstream.
# TYPE coredns_forward_request_count_total counter
coredns_forward_request_count_total{to="192.168.10.20:53"} 8653
# HELP coredns_forward_request_duration_seconds Histogram of the time each request took.
# TYPE coredns_forward_request_duration_seconds histogram
coredns_forward_request_duration_seconds_bucket{to="192.168.10.20:53",le="0.00025"} 1
coredns_forward_request_duration_seconds_bucket{to="192.168.10.20:53",le="0.0005"} 233
coredns_forward_request_duration_seconds_bucket{to="192.168.10.20:53",le="0.001"} 7434
coredns_forward_request_duration_seconds_bucket{to="192.168.10.20:53",le="0.002"} 8088
coredns_forward_request_duration_seconds_bucket{to="192.168.10.20:53",le="0.004"} 8332
coredns_forward_request_duration_seconds_bucket{to="192.168.10.20:53",le="0.008"} 8396
coredns_forward_request_duration_seconds_bucket{to="192.168.10.20:53",le="0.016"} 8401
coredns_forward_request_duration_seconds_bucket{to="192.168.10.20:53",le="0.032"} 8422
coredns_forward_request_duration_seconds_bucket{to="192.168.10.20:53",le="0.064"} 8450
coredns_forward_request_duration_seconds_bucket{to="192.168.10.20:53",le="0.128"} 8469
coredns_forward_request_duration_seconds_bucket{to="192.168.10.20:53",le="0.256"} 8491
coredns_forward_request_duration_seconds_bucket{to="192.168.10.20:53",le="0.512"} 8496
coredns_forward_request_duration_seconds_bucket{to="192.168.10.20:53",le="1.024"} 8589
coredns_forward_request_duration_seconds_bucket{to="192.168.10.20:53",le="2.048"} 8653
coredns_forward_request_duration_seconds_bucket{to="192.168.10.20:53",le="4.096"} 8653
coredns_forward_request_duration_seconds_bucket{to="192.168.10.20:53",le="8.192"} 8653
coredns_forward_request_duration_seconds_bucket{to="192.168.10.20:53",le="+Inf"} 8653
coredns_forward_request_duration_seconds_sum{to="192.168.10.20:53"} 141.92450903400072
coredns_forward_request_duration_seconds_count{to="192.168.10.20:53"} 8653
# HELP coredns_forward_response_rcode_count_total Counter of requests made per upstream.
# TYPE coredns_forward_response_rcode_count_total counter
coredns_forward_response_rcode_count_total{rcode="NOERROR",to="192.168.10.20:53"} 8633
coredns_forward_response_rcode_count_total{rcode="NXDOMAIN",to="192.168.10.20:53"} 20
# HELP coredns_health_request_duration_seconds Histogram of the time (in seconds) each request took.
# TYPE coredns_health_request_duration_seconds histogram
coredns_health_request_duration_seconds_bucket{le="0.00025"} 0
coredns_health_request_duration_seconds_bucket{le="0.0005"} 4502
coredns_health_request_duration_seconds_bucket{le="0.001"} 13645
coredns_health_request_duration_seconds_bucket{le="0.002"} 14103
coredns_health_request_duration_seconds_bucket{le="0.004"} 14373
coredns_health_request_duration_seconds_bucket{le="0.008"} 14454
coredns_health_request_duration_seconds_bucket{le="0.016"} 14467
coredns_health_request_duration_seconds_bucket{le="0.032"} 14468
coredns_health_request_duration_seconds_bucket{le="0.064"} 14468
coredns_health_request_duration_seconds_bucket{le="0.128"} 14468
coredns_health_request_duration_seconds_bucket{le="0.256"} 14468
coredns_health_request_duration_seconds_bucket{le="0.512"} 14468
coredns_health_request_duration_seconds_bucket{le="1.024"} 14468
coredns_health_request_duration_seconds_bucket{le="2.048"} 14468
coredns_health_request_duration_seconds_bucket{le="4.096"} 14468
coredns_health_request_duration_seconds_bucket{le="8.192"} 14468
coredns_health_request_duration_seconds_bucket{le="+Inf"} 14468
coredns_health_request_duration_seconds_sum 9.382381009000008
coredns_health_request_duration_seconds_count 14468
# HELP coredns_hosts_entries_count The combined number of entries in hosts and Corefile.
# TYPE coredns_hosts_entries_count gauge
coredns_hosts_entries_count 2
# HELP coredns_hosts_reload_timestamp_seconds The timestamp of the last reload of hosts file.
# TYPE coredns_hosts_reload_timestamp_seconds gauge
coredns_hosts_reload_timestamp_seconds 1.6183957947327013e+09
# HELP coredns_panic_count_total A metrics that counts the number of panics.
# TYPE coredns_panic_count_total counter
coredns_panic_count_total 0
# HELP coredns_plugin_enabled A metric that indicates whether a plugin is enabled on per server and zone basis.
# TYPE coredns_plugin_enabled gauge
coredns_plugin_enabled{name="cache",server="dns://:53",zone="."} 1
coredns_plugin_enabled{name="errors",server="dns://:53",zone="."} 1
coredns_plugin_enabled{name="forward",server="dns://:53",zone="."} 1
coredns_plugin_enabled{name="hosts",server="dns://:53",zone="."} 1
coredns_plugin_enabled{name="kubernetes",server="dns://:53",zone="."} 1
coredns_plugin_enabled{name="loadbalance",server="dns://:53",zone="."} 1
coredns_plugin_enabled{name="loop",server="dns://:53",zone="."} 1
coredns_plugin_enabled{name="prometheus",server="dns://:53",zone="."} 1
# HELP go_gc_duration_seconds A summary of the pause duration of garbage collection cycles.
# TYPE go_gc_duration_seconds summary
go_gc_duration_seconds{quantile="0"} 1.3513e-05
go_gc_duration_seconds{quantile="0.25"} 1.7169e-05
go_gc_duration_seconds{quantile="0.5"} 4.5533e-05
go_gc_duration_seconds{quantile="0.75"} 9.1729e-05
go_gc_duration_seconds{quantile="1"} 0.007679739
go_gc_duration_seconds_sum 5.2130366949999996
go_gc_duration_seconds_count 4309
# HELP go_goroutines Number of goroutines that currently exist.
# TYPE go_goroutines gauge
go_goroutines 45
# HELP go_info Information about the Go environment.
# TYPE go_info gauge
go_info{version="go1.14.1"} 1
# HELP go_memstats_alloc_bytes Number of bytes allocated and still in use.
# TYPE go_memstats_alloc_bytes gauge
go_memstats_alloc_bytes 4.403632e+06
# HELP go_memstats_alloc_bytes_total Total number of bytes allocated, even if freed.
# TYPE go_memstats_alloc_bytes_total counter
go_memstats_alloc_bytes_total 9.379652856e+09
# HELP go_memstats_buck_hash_sys_bytes Number of bytes used by the profiling bucket hash table.
# TYPE go_memstats_buck_hash_sys_bytes gauge
go_memstats_buck_hash_sys_bytes 1.537901e+06
# HELP go_memstats_frees_total Total number of frees.
# TYPE go_memstats_frees_total counter
go_memstats_frees_total 1.75859725e+08
# HELP go_memstats_gc_cpu_fraction The fraction of this program's available CPU time used by the GC since the program started.
# TYPE go_memstats_gc_cpu_fraction gauge
go_memstats_gc_cpu_fraction 0.0005583341118144876
# HELP go_memstats_gc_sys_bytes Number of bytes used for garbage collection system metadata.
# TYPE go_memstats_gc_sys_bytes gauge
go_memstats_gc_sys_bytes 3.647752e+06
# HELP go_memstats_heap_alloc_bytes Number of heap bytes allocated and still in use.
# TYPE go_memstats_heap_alloc_bytes gauge
go_memstats_heap_alloc_bytes 4.403632e+06
# HELP go_memstats_heap_idle_bytes Number of heap bytes waiting to be used.
# TYPE go_memstats_heap_idle_bytes gauge
go_memstats_heap_idle_bytes 5.9252736e+07
# HELP go_memstats_heap_inuse_bytes Number of heap bytes that are in use.
# TYPE go_memstats_heap_inuse_bytes gauge
go_memstats_heap_inuse_bytes 6.67648e+06
# HELP go_memstats_heap_objects Number of allocated objects.
# TYPE go_memstats_heap_objects gauge
go_memstats_heap_objects 31153
# HELP go_memstats_heap_released_bytes Number of heap bytes released to OS.
# TYPE go_memstats_heap_released_bytes gauge
go_memstats_heap_released_bytes 5.8646528e+07
# HELP go_memstats_heap_sys_bytes Number of heap bytes obtained from system.
# TYPE go_memstats_heap_sys_bytes gauge
go_memstats_heap_sys_bytes 6.5929216e+07
# HELP go_memstats_last_gc_time_seconds Number of seconds since 1970 of last garbage collection.
# TYPE go_memstats_last_gc_time_seconds gauge
go_memstats_last_gc_time_seconds 1.618410279127009e+09
# HELP go_memstats_lookups_total Total number of pointer lookups.
# TYPE go_memstats_lookups_total counter
go_memstats_lookups_total 0
# HELP go_memstats_mallocs_total Total number of mallocs.
# TYPE go_memstats_mallocs_total counter
go_memstats_mallocs_total 1.75890878e+08
# HELP go_memstats_mcache_inuse_bytes Number of bytes in use by mcache structures.
# TYPE go_memstats_mcache_inuse_bytes gauge
go_memstats_mcache_inuse_bytes 13888
# HELP go_memstats_mcache_sys_bytes Number of bytes used for mcache structures obtained from system.
# TYPE go_memstats_mcache_sys_bytes gauge
go_memstats_mcache_sys_bytes 16384
# HELP go_memstats_mspan_inuse_bytes Number of bytes in use by mspan structures.
# TYPE go_memstats_mspan_inuse_bytes gauge
go_memstats_mspan_inuse_bytes 168776
# HELP go_memstats_mspan_sys_bytes Number of bytes used for mspan structures obtained from system.
# TYPE go_memstats_mspan_sys_bytes gauge
go_memstats_mspan_sys_bytes 212992
# HELP go_memstats_next_gc_bytes Number of heap bytes when next garbage collection will take place.
# TYPE go_memstats_next_gc_bytes gauge
go_memstats_next_gc_bytes 6.168768e+06
# HELP go_memstats_other_sys_bytes Number of bytes used for other system allocations.
# TYPE go_memstats_other_sys_bytes gauge
go_memstats_other_sys_bytes 2.072715e+06
# HELP go_memstats_stack_inuse_bytes Number of bytes in use by the stack allocator.
# TYPE go_memstats_stack_inuse_bytes gauge
go_memstats_stack_inuse_bytes 1.114112e+06
# HELP go_memstats_stack_sys_bytes Number of bytes obtained from system for stack allocator.
# TYPE go_memstats_stack_sys_bytes gauge
go_memstats_stack_sys_bytes 1.114112e+06
# HELP go_memstats_sys_bytes Number of bytes obtained from system.
# TYPE go_memstats_sys_bytes gauge
go_memstats_sys_bytes 7.4531072e+07
# HELP go_threads Number of OS threads created.
# TYPE go_threads gauge
go_threads 15
# HELP process_cpu_seconds_total Total user and system CPU time spent in seconds.
# TYPE process_cpu_seconds_total counter
process_cpu_seconds_total 554.43
# HELP process_max_fds Maximum number of open file descriptors.
# TYPE process_max_fds gauge
process_max_fds 1.048576e+06
# HELP process_open_fds Number of open file descriptors.
# TYPE process_open_fds gauge
process_open_fds 19
# HELP process_resident_memory_bytes Resident memory size in bytes.
# TYPE process_resident_memory_bytes gauge
process_resident_memory_bytes 4.3122688e+07
# HELP process_start_time_seconds Start time of the process since unix epoch in seconds.
# TYPE process_start_time_seconds gauge
process_start_time_seconds 1.61839581024e+09
# HELP process_virtual_memory_bytes Virtual memory size in bytes.
# TYPE process_virtual_memory_bytes gauge
process_virtual_memory_bytes 7.6484608e+08
# HELP process_virtual_memory_max_bytes Maximum amount of virtual memory available in bytes.
# TYPE process_virtual_memory_max_bytes gauge
process_virtual_memory_max_bytes -1

0 个答案:

没有答案