Debian Codegraph @

prometheus/go_collector_metrics_go120_test.go

raw
1 // Code generated by gen_go_collector_metrics_set.go; DO NOT EDIT.
2 //go:generate go run gen_go_collector_metrics_set.go go1.20
3
4 //go:build go1.20 && !go1.21
5 // +build go1.20,!go1.21
6
7 package prometheus
8
9 var (
10 expectedRuntimeMetrics = map[string]string{
11 "/cgo/go-to-c-calls:calls": "go_cgo_go_to_c_calls_calls_total",
12 "/cpu/classes/gc/mark/assist:cpu-seconds": "go_cpu_classes_gc_mark_assist_cpu_seconds_total",
13 "/cpu/classes/gc/mark/dedicated:cpu-seconds": "go_cpu_classes_gc_mark_dedicated_cpu_seconds_total",
14 "/cpu/classes/gc/mark/idle:cpu-seconds": "go_cpu_classes_gc_mark_idle_cpu_seconds_total",
15 "/cpu/classes/gc/pause:cpu-seconds": "go_cpu_classes_gc_pause_cpu_seconds_total",
16 "/cpu/classes/gc/total:cpu-seconds": "go_cpu_classes_gc_total_cpu_seconds_total",
17 "/cpu/classes/idle:cpu-seconds": "go_cpu_classes_idle_cpu_seconds_total",
18 "/cpu/classes/scavenge/assist:cpu-seconds": "go_cpu_classes_scavenge_assist_cpu_seconds_total",
19 "/cpu/classes/scavenge/background:cpu-seconds": "go_cpu_classes_scavenge_background_cpu_seconds_total",
20 "/cpu/classes/scavenge/total:cpu-seconds": "go_cpu_classes_scavenge_total_cpu_seconds_total",
21 "/cpu/classes/total:cpu-seconds": "go_cpu_classes_total_cpu_seconds_total",
22 "/cpu/classes/user:cpu-seconds": "go_cpu_classes_user_cpu_seconds_total",
23 "/gc/cycles/automatic:gc-cycles": "go_gc_cycles_automatic_gc_cycles_total",
24 "/gc/cycles/forced:gc-cycles": "go_gc_cycles_forced_gc_cycles_total",
25 "/gc/cycles/total:gc-cycles": "go_gc_cycles_total_gc_cycles_total",
26 "/gc/heap/allocs-by-size:bytes": "go_gc_heap_allocs_by_size_bytes",
27 "/gc/heap/allocs:bytes": "go_gc_heap_allocs_bytes_total",
28 "/gc/heap/allocs:objects": "go_gc_heap_allocs_objects_total",
29 "/gc/heap/frees-by-size:bytes": "go_gc_heap_frees_by_size_bytes",
30 "/gc/heap/frees:bytes": "go_gc_heap_frees_bytes_total",
31 "/gc/heap/frees:objects": "go_gc_heap_frees_objects_total",
32 "/gc/heap/goal:bytes": "go_gc_heap_goal_bytes",
33 "/gc/heap/objects:objects": "go_gc_heap_objects_objects",
34 "/gc/heap/tiny/allocs:objects": "go_gc_heap_tiny_allocs_objects_total",
35 "/gc/limiter/last-enabled:gc-cycle": "go_gc_limiter_last_enabled_gc_cycle",
36 "/gc/pauses:seconds": "go_gc_pauses_seconds",
37 "/gc/stack/starting-size:bytes": "go_gc_stack_starting_size_bytes",
38 "/memory/classes/heap/free:bytes": "go_memory_classes_heap_free_bytes",
39 "/memory/classes/heap/objects:bytes": "go_memory_classes_heap_objects_bytes",
40 "/memory/classes/heap/released:bytes": "go_memory_classes_heap_released_bytes",
41 "/memory/classes/heap/stacks:bytes": "go_memory_classes_heap_stacks_bytes",
42 "/memory/classes/heap/unused:bytes": "go_memory_classes_heap_unused_bytes",
43 "/memory/classes/metadata/mcache/free:bytes": "go_memory_classes_metadata_mcache_free_bytes",
44 "/memory/classes/metadata/mcache/inuse:bytes": "go_memory_classes_metadata_mcache_inuse_bytes",
45 "/memory/classes/metadata/mspan/free:bytes": "go_memory_classes_metadata_mspan_free_bytes",
46 "/memory/classes/metadata/mspan/inuse:bytes": "go_memory_classes_metadata_mspan_inuse_bytes",
47 "/memory/classes/metadata/other:bytes": "go_memory_classes_metadata_other_bytes",
48 "/memory/classes/os-stacks:bytes": "go_memory_classes_os_stacks_bytes",
49 "/memory/classes/other:bytes": "go_memory_classes_other_bytes",
50 "/memory/classes/profiling/buckets:bytes": "go_memory_classes_profiling_buckets_bytes",
51 "/memory/classes/total:bytes": "go_memory_classes_total_bytes",
52 "/sched/gomaxprocs:threads": "go_sched_gomaxprocs_threads",
53 "/sched/goroutines:goroutines": "go_sched_goroutines_goroutines",
54 "/sched/latencies:seconds": "go_sched_latencies_seconds",
55 "/sync/mutex/wait/total:seconds": "go_sync_mutex_wait_total_seconds_total",
56 }
57
58 expMetrics = map[string]string{
59 "/sched/gomaxprocs:threads": "go_sched_gomaxprocs_threads",
60 }
61 )
62
63 const expectedRuntimeMetricsCardinality = 89