You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
metric: NewGauge(GaugeOpts{Namespace: ns, Name: "alloc_bytes", Help: "Number of bytes allocated in heap and currently in use. Equals to /memory/classes/heap/objects:bytes."}),
36
32
}, {
37
-
desc: NewDesc(
38
-
memstatNamespace("alloc_bytes_total"),
39
-
"Total number of bytes allocated in heap until now, even if released already. Equals to /gc/heap/allocs:bytes.",
metric: NewCounter(CounterOpts{Namespace: ns, Name: "alloc_bytes_total", Help: "Total number of bytes allocated in heap until now, even if released already. Equals to /gc/heap/allocs:bytes."}),
44
35
}, {
45
-
desc: NewDesc(
46
-
memstatNamespace("sys_bytes"),
47
-
"Number of bytes obtained from system. Equals to /memory/classes/total:byte.",
metric: NewGauge(GaugeOpts{Namespace: ns, Name: "sys_bytes", Help: "Number of bytes obtained from system. Equals to /memory/classes/total:byte."}),
52
38
}, {
53
-
desc: NewDesc(
54
-
memstatNamespace("mallocs_total"),
55
-
// TODO(bwplotka): We could add go_memstats_heap_objects, probably useful for discovery. Let's gather more feedback, kind of a waste of bytes for everybody for compatibility reasons to keep both, and we can't really rename/remove useful metric.
56
-
"Total number of heap objects allocated, both live and gc-ed. Semantically a counter version for go_memstats_heap_objects gauge. Equals to /gc/heap/allocs:objects + /gc/heap/tiny/allocs:objects.",
// TODO(bwplotka): We could add go_memstats_heap_objects, probably useful for discovery. Let's gather more feedback, kind of a waste of bytes for everybody for compatibility reasons to keep both, and we can't really rename/remove useful metric.
41
+
metric: NewCounter(CounterOpts{Namespace: ns, Name: "mallocs_total", Help: "Total number of heap objects allocated, both live and gc-ed. Semantically a counter version for go_memstats_heap_objects gauge. Equals to /gc/heap/allocs:objects + /gc/heap/tiny/allocs:objects."}),
61
42
}, {
62
-
desc: NewDesc(
63
-
memstatNamespace("frees_total"),
64
-
"Total number of heap objects frees. Equals to /gc/heap/frees:objects + /gc/heap/tiny/allocs:objects.",
metric: NewGauge(GaugeOpts{Namespace: ns, Name: "heap_alloc_bytes", Help: "Number of heap bytes allocated and currently in use, same as go_memstats_alloc_bytes. Equals to /memory/classes/heap/objects:bytes."}),
77
48
}, {
78
-
desc: NewDesc(
79
-
memstatNamespace("heap_sys_bytes"),
80
-
"Number of heap bytes obtained from system. Equals to /memory/classes/heap/objects:bytes + /memory/classes/heap/unused:bytes + /memory/classes/heap/released:bytes + /memory/classes/heap/free:bytes.",
metric: NewGauge(GaugeOpts{Namespace: ns, Name: "heap_idle_bytes", Help: "Number of heap bytes waiting to be used. Equals to /memory/classes/heap/released:bytes + /memory/classes/heap/free:bytes."}),
93
54
}, {
94
-
desc: NewDesc(
95
-
memstatNamespace("heap_inuse_bytes"),
96
-
"Number of heap bytes that are in use. Equals to /memory/classes/heap/objects:bytes + /memory/classes/heap/unused:bytes",
metric: NewGauge(GaugeOpts{Namespace: ns, Name: "heap_inuse_bytes", Help: "Number of heap bytes that are in use. Equals to /memory/classes/heap/objects:bytes + /memory/classes/heap/unused:bytes"}),
101
57
}, {
102
-
desc: NewDesc(
103
-
memstatNamespace("heap_released_bytes"),
104
-
"Number of heap bytes released to OS. Equals to /memory/classes/heap/released:bytes.",
metric: NewGauge(GaugeOpts{Namespace: ns, Name: "heap_released_bytes", Help: "Number of heap bytes released to OS. Equals to /memory/classes/heap/released:bytes."}),
109
60
}, {
110
-
desc: NewDesc(
111
-
memstatNamespace("heap_objects"),
112
-
"Number of currently allocated objects. Equals to /gc/heap/objects:objects.",
metric: NewGauge(GaugeOpts{Namespace: ns, Name: "stack_inuse_bytes", Help: "Number of bytes obtained from system for stack allocator in non-CGO environments. Equals to /memory/classes/heap/stacks:bytes."}),
125
66
}, {
126
-
desc: NewDesc(
127
-
memstatNamespace("stack_sys_bytes"),
128
-
"Number of bytes obtained from system for stack allocator. Equals to /memory/classes/heap/stacks:bytes + /memory/classes/os-stacks:bytes.",
metric: NewGauge(GaugeOpts{Namespace: ns, Name: "stack_sys_bytes", Help: "Number of bytes obtained from system for stack allocator. Equals to /memory/classes/heap/stacks:bytes + /memory/classes/os-stacks:bytes."}),
133
69
}, {
134
-
desc: NewDesc(
135
-
memstatNamespace("mspan_inuse_bytes"),
136
-
"Number of bytes in use by mspan structures. Equals to /memory/classes/metadata/mspan/inuse:bytes.",
metric: NewGauge(GaugeOpts{Namespace: ns, Name: "mspan_inuse_bytes", Help: "Number of bytes in use by mspan structures. Equals to /memory/classes/metadata/mspan/inuse:bytes."}),
141
72
}, {
142
-
desc: NewDesc(
143
-
memstatNamespace("mspan_sys_bytes"),
144
-
"Number of bytes used for mspan structures obtained from system. Equals to /memory/classes/metadata/mspan/inuse:bytes + /memory/classes/metadata/mspan/free:bytes.",
metric: NewGauge(GaugeOpts{Namespace: ns, Name: "mspan_sys_bytes", Help: "Number of bytes used for mspan structures obtained from system. Equals to /memory/classes/metadata/mspan/inuse:bytes + /memory/classes/metadata/mspan/free:bytes."}),
149
75
}, {
150
-
desc: NewDesc(
151
-
memstatNamespace("mcache_inuse_bytes"),
152
-
"Number of bytes in use by mcache structures. Equals to /memory/classes/metadata/mcache/inuse:bytes.",
metric: NewGauge(GaugeOpts{Namespace: ns, Name: "mcache_inuse_bytes", Help: "Number of bytes in use by mcache structures. Equals to /memory/classes/metadata/mcache/inuse:bytes."}),
157
78
}, {
158
-
desc: NewDesc(
159
-
memstatNamespace("mcache_sys_bytes"),
160
-
"Number of bytes used for mcache structures obtained from system. Equals to /memory/classes/metadata/mcache/inuse:bytes + /memory/classes/metadata/mcache/free:bytes.",
metric: NewGauge(GaugeOpts{Namespace: ns, Name: "mcache_sys_bytes", Help: "Number of bytes used for mcache structures obtained from system. Equals to /memory/classes/metadata/mcache/inuse:bytes + /memory/classes/metadata/mcache/free:bytes."}),
165
81
}, {
166
-
desc: NewDesc(
167
-
memstatNamespace("buck_hash_sys_bytes"),
168
-
"Number of bytes used by the profiling bucket hash table. Equals to /memory/classes/profiling/buckets:bytes.",
metric: NewGauge(GaugeOpts{Namespace: ns, Name: "buck_hash_sys_bytes", Help: "Number of bytes used by the profiling bucket hash table. Equals to /memory/classes/profiling/buckets:bytes."}),
173
84
}, {
174
-
desc: NewDesc(
175
-
memstatNamespace("gc_sys_bytes"),
176
-
"Number of bytes used for garbage collection system metadata. Equals to /memory/classes/metadata/other:bytes.",
metric: NewGauge(GaugeOpts{Namespace: ns, Name: "gc_sys_bytes", Help: "Number of bytes used for garbage collection system metadata. Equals to /memory/classes/metadata/other:bytes."}),
181
87
}, {
182
-
desc: NewDesc(
183
-
memstatNamespace("other_sys_bytes"),
184
-
"Number of bytes used for other system allocations. Equals to /memory/classes/other:bytes.",
metric: NewGauge(GaugeOpts{Namespace: ns, Name: "other_sys_bytes", Help: "Number of bytes used for other system allocations. Equals to /memory/classes/other:bytes."}),
189
90
}, {
190
-
desc: NewDesc(
191
-
memstatNamespace("next_gc_bytes"),
192
-
"Number of heap bytes when next garbage collection will take place. Equals to /gc/heap/goal:bytes.",
metric: NewGauge(GaugeOpts{Namespace: ns, Name: "next_gc_bytes", Help: "Number of heap bytes when next garbage collection will take place. Equals to /gc/heap/goal:bytes."}),
0 commit comments