File: go_collector_metrics_go124_test.go

package info (click to toggle)
golang-github-prometheus-client-golang 1.23.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,192 kB
  • sloc: makefile: 68; ansic: 46; sh: 21
file content (112 lines) | stat: -rw-r--r-- 11,330 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
// Code generated by gen_go_collector_metrics_set.go; DO NOT EDIT.
//go:generate go run gen_go_collector_metrics_set.go go1.24

//go:build go1.24 && !go1.25
// +build go1.24,!go1.25

package prometheus

var (
	expectedRuntimeMetrics = map[string]string{
		"/cgo/go-to-c-calls:calls":                                         "go_cgo_go_to_c_calls_calls_total",
		"/cpu/classes/gc/mark/assist:cpu-seconds":                          "go_cpu_classes_gc_mark_assist_cpu_seconds_total",
		"/cpu/classes/gc/mark/dedicated:cpu-seconds":                       "go_cpu_classes_gc_mark_dedicated_cpu_seconds_total",
		"/cpu/classes/gc/mark/idle:cpu-seconds":                            "go_cpu_classes_gc_mark_idle_cpu_seconds_total",
		"/cpu/classes/gc/pause:cpu-seconds":                                "go_cpu_classes_gc_pause_cpu_seconds_total",
		"/cpu/classes/gc/total:cpu-seconds":                                "go_cpu_classes_gc_total_cpu_seconds_total",
		"/cpu/classes/idle:cpu-seconds":                                    "go_cpu_classes_idle_cpu_seconds_total",
		"/cpu/classes/scavenge/assist:cpu-seconds":                         "go_cpu_classes_scavenge_assist_cpu_seconds_total",
		"/cpu/classes/scavenge/background:cpu-seconds":                     "go_cpu_classes_scavenge_background_cpu_seconds_total",
		"/cpu/classes/scavenge/total:cpu-seconds":                          "go_cpu_classes_scavenge_total_cpu_seconds_total",
		"/cpu/classes/total:cpu-seconds":                                   "go_cpu_classes_total_cpu_seconds_total",
		"/cpu/classes/user:cpu-seconds":                                    "go_cpu_classes_user_cpu_seconds_total",
		"/gc/cycles/automatic:gc-cycles":                                   "go_gc_cycles_automatic_gc_cycles_total",
		"/gc/cycles/forced:gc-cycles":                                      "go_gc_cycles_forced_gc_cycles_total",
		"/gc/cycles/total:gc-cycles":                                       "go_gc_cycles_total_gc_cycles_total",
		"/gc/gogc:percent":                                                 "go_gc_gogc_percent",
		"/gc/gomemlimit:bytes":                                             "go_gc_gomemlimit_bytes",
		"/gc/heap/allocs-by-size:bytes":                                    "go_gc_heap_allocs_by_size_bytes",
		"/gc/heap/allocs:bytes":                                            "go_gc_heap_allocs_bytes_total",
		"/gc/heap/allocs:objects":                                          "go_gc_heap_allocs_objects_total",
		"/gc/heap/frees-by-size:bytes":                                     "go_gc_heap_frees_by_size_bytes",
		"/gc/heap/frees:bytes":                                             "go_gc_heap_frees_bytes_total",
		"/gc/heap/frees:objects":                                           "go_gc_heap_frees_objects_total",
		"/gc/heap/goal:bytes":                                              "go_gc_heap_goal_bytes",
		"/gc/heap/live:bytes":                                              "go_gc_heap_live_bytes",
		"/gc/heap/objects:objects":                                         "go_gc_heap_objects_objects",
		"/gc/heap/tiny/allocs:objects":                                     "go_gc_heap_tiny_allocs_objects_total",
		"/gc/limiter/last-enabled:gc-cycle":                                "go_gc_limiter_last_enabled_gc_cycle",
		"/gc/pauses:seconds":                                               "go_gc_pauses_seconds",
		"/gc/scan/globals:bytes":                                           "go_gc_scan_globals_bytes",
		"/gc/scan/heap:bytes":                                              "go_gc_scan_heap_bytes",
		"/gc/scan/stack:bytes":                                             "go_gc_scan_stack_bytes",
		"/gc/scan/total:bytes":                                             "go_gc_scan_total_bytes",
		"/gc/stack/starting-size:bytes":                                    "go_gc_stack_starting_size_bytes",
		"/godebug/non-default-behavior/allowmultiplevcs:events":            "go_godebug_non_default_behavior_allowmultiplevcs_events_total",
		"/godebug/non-default-behavior/asynctimerchan:events":              "go_godebug_non_default_behavior_asynctimerchan_events_total",
		"/godebug/non-default-behavior/execerrdot:events":                  "go_godebug_non_default_behavior_execerrdot_events_total",
		"/godebug/non-default-behavior/gocachehash:events":                 "go_godebug_non_default_behavior_gocachehash_events_total",
		"/godebug/non-default-behavior/gocachetest:events":                 "go_godebug_non_default_behavior_gocachetest_events_total",
		"/godebug/non-default-behavior/gocacheverify:events":               "go_godebug_non_default_behavior_gocacheverify_events_total",
		"/godebug/non-default-behavior/gotestjsonbuildtext:events":         "go_godebug_non_default_behavior_gotestjsonbuildtext_events_total",
		"/godebug/non-default-behavior/gotypesalias:events":                "go_godebug_non_default_behavior_gotypesalias_events_total",
		"/godebug/non-default-behavior/http2client:events":                 "go_godebug_non_default_behavior_http2client_events_total",
		"/godebug/non-default-behavior/http2server:events":                 "go_godebug_non_default_behavior_http2server_events_total",
		"/godebug/non-default-behavior/httplaxcontentlength:events":        "go_godebug_non_default_behavior_httplaxcontentlength_events_total",
		"/godebug/non-default-behavior/httpmuxgo121:events":                "go_godebug_non_default_behavior_httpmuxgo121_events_total",
		"/godebug/non-default-behavior/httpservecontentkeepheaders:events": "go_godebug_non_default_behavior_httpservecontentkeepheaders_events_total",
		"/godebug/non-default-behavior/installgoroot:events":               "go_godebug_non_default_behavior_installgoroot_events_total",
		"/godebug/non-default-behavior/multipartmaxheaders:events":         "go_godebug_non_default_behavior_multipartmaxheaders_events_total",
		"/godebug/non-default-behavior/multipartmaxparts:events":           "go_godebug_non_default_behavior_multipartmaxparts_events_total",
		"/godebug/non-default-behavior/multipathtcp:events":                "go_godebug_non_default_behavior_multipathtcp_events_total",
		"/godebug/non-default-behavior/netedns0:events":                    "go_godebug_non_default_behavior_netedns0_events_total",
		"/godebug/non-default-behavior/panicnil:events":                    "go_godebug_non_default_behavior_panicnil_events_total",
		"/godebug/non-default-behavior/randautoseed:events":                "go_godebug_non_default_behavior_randautoseed_events_total",
		"/godebug/non-default-behavior/randseednop:events":                 "go_godebug_non_default_behavior_randseednop_events_total",
		"/godebug/non-default-behavior/rsa1024min:events":                  "go_godebug_non_default_behavior_rsa1024min_events_total",
		"/godebug/non-default-behavior/tarinsecurepath:events":             "go_godebug_non_default_behavior_tarinsecurepath_events_total",
		"/godebug/non-default-behavior/tls10server:events":                 "go_godebug_non_default_behavior_tls10server_events_total",
		"/godebug/non-default-behavior/tls3des:events":                     "go_godebug_non_default_behavior_tls3des_events_total",
		"/godebug/non-default-behavior/tlsmaxrsasize:events":               "go_godebug_non_default_behavior_tlsmaxrsasize_events_total",
		"/godebug/non-default-behavior/tlsrsakex:events":                   "go_godebug_non_default_behavior_tlsrsakex_events_total",
		"/godebug/non-default-behavior/tlsunsafeekm:events":                "go_godebug_non_default_behavior_tlsunsafeekm_events_total",
		"/godebug/non-default-behavior/winreadlinkvolume:events":           "go_godebug_non_default_behavior_winreadlinkvolume_events_total",
		"/godebug/non-default-behavior/winsymlink:events":                  "go_godebug_non_default_behavior_winsymlink_events_total",
		"/godebug/non-default-behavior/x509keypairleaf:events":             "go_godebug_non_default_behavior_x509keypairleaf_events_total",
		"/godebug/non-default-behavior/x509negativeserial:events":          "go_godebug_non_default_behavior_x509negativeserial_events_total",
		"/godebug/non-default-behavior/x509rsacrt:events":                  "go_godebug_non_default_behavior_x509rsacrt_events_total",
		"/godebug/non-default-behavior/x509usefallbackroots:events":        "go_godebug_non_default_behavior_x509usefallbackroots_events_total",
		"/godebug/non-default-behavior/x509usepolicies:events":             "go_godebug_non_default_behavior_x509usepolicies_events_total",
		"/godebug/non-default-behavior/zipinsecurepath:events":             "go_godebug_non_default_behavior_zipinsecurepath_events_total",
		"/memory/classes/heap/free:bytes":                                  "go_memory_classes_heap_free_bytes",
		"/memory/classes/heap/objects:bytes":                               "go_memory_classes_heap_objects_bytes",
		"/memory/classes/heap/released:bytes":                              "go_memory_classes_heap_released_bytes",
		"/memory/classes/heap/stacks:bytes":                                "go_memory_classes_heap_stacks_bytes",
		"/memory/classes/heap/unused:bytes":                                "go_memory_classes_heap_unused_bytes",
		"/memory/classes/metadata/mcache/free:bytes":                       "go_memory_classes_metadata_mcache_free_bytes",
		"/memory/classes/metadata/mcache/inuse:bytes":                      "go_memory_classes_metadata_mcache_inuse_bytes",
		"/memory/classes/metadata/mspan/free:bytes":                        "go_memory_classes_metadata_mspan_free_bytes",
		"/memory/classes/metadata/mspan/inuse:bytes":                       "go_memory_classes_metadata_mspan_inuse_bytes",
		"/memory/classes/metadata/other:bytes":                             "go_memory_classes_metadata_other_bytes",
		"/memory/classes/os-stacks:bytes":                                  "go_memory_classes_os_stacks_bytes",
		"/memory/classes/other:bytes":                                      "go_memory_classes_other_bytes",
		"/memory/classes/profiling/buckets:bytes":                          "go_memory_classes_profiling_buckets_bytes",
		"/memory/classes/total:bytes":                                      "go_memory_classes_total_bytes",
		"/sched/gomaxprocs:threads":                                        "go_sched_gomaxprocs_threads",
		"/sched/goroutines:goroutines":                                     "go_sched_goroutines_goroutines",
		"/sched/latencies:seconds":                                         "go_sched_latencies_seconds",
		"/sched/pauses/stopping/gc:seconds":                                "go_sched_pauses_stopping_gc_seconds",
		"/sched/pauses/stopping/other:seconds":                             "go_sched_pauses_stopping_other_seconds",
		"/sched/pauses/total/gc:seconds":                                   "go_sched_pauses_total_gc_seconds",
		"/sched/pauses/total/other:seconds":                                "go_sched_pauses_total_other_seconds",
		"/sync/mutex/wait/total:seconds":                                   "go_sync_mutex_wait_total_seconds_total",
	}

	expMetrics = map[string]string{
		"/gc/gogc:percent":          "go_gc_gogc_percent",
		"/gc/gomemlimit:bytes":      "go_gc_gomemlimit_bytes",
		"/sched/gomaxprocs:threads": "go_sched_gomaxprocs_threads",
	}
)

const expectedRuntimeMetricsCardinality = 172