Expvar Receiver
OpenTelemetry Collector receiver · contrib distribution
An Expvar Receiver scrapes metrics from expvar, which exposes data in JSON format from an HTTP endpoint. The metrics are extracted from the expvar variable memstats, which exposes various information about the Go runtime.
- Component ID:
contrib-expvarreceiver - Name:
expvarreceiver - Type: receiver
- Distribution: contrib
- Repository:
opentelemetry-collector-contrib
Stability
| Level | Signals |
|---|---|
| alpha | metrics |
Metrics
| Metric | Type | Value type | Unit | Stability | Enabled | Attributes | Description |
|---|---|---|---|---|---|---|---|
process.runtime.memstats.buck_hash_sys | sum | int | By | development | yes | Bytes of memory in profiling bucket hash tables. As defined by https://pkg.go.dev/runtime#MemStats | |
process.runtime.memstats.frees | sum (monotonic) | int | {objects} | development | yes | Cumulative count of heap objects freed. As defined by https://pkg.go.dev/runtime#MemStats | |
process.runtime.memstats.gc_cpu_fraction | gauge | double | 1 | development | yes | The fraction of this program's available CPU time used by the GC since the program started. As defined by https://pkg.go.dev/runtime#MemStats | |
process.runtime.memstats.gc_sys | sum | int | By | development | yes | Bytes of memory in garbage collection metadata. As defined by https://pkg.go.dev/runtime#MemStats | |
process.runtime.memstats.heap_alloc | sum | int | By | development | yes | Bytes of allocated heap objects. As defined by https://pkg.go.dev/runtime#MemStats | |
process.runtime.memstats.heap_idle | sum | int | By | development | yes | Bytes in idle (unused) spans. As defined by https://pkg.go.dev/runtime#MemStats | |
process.runtime.memstats.heap_inuse | sum | int | By | development | yes | Bytes in in-use spans. As defined by https://pkg.go.dev/runtime#MemStats | |
process.runtime.memstats.heap_objects | sum | int | {objects} | development | yes | Number of allocated heap objects. As defined by https://pkg.go.dev/runtime#MemStats | |
process.runtime.memstats.heap_released | sum | int | By | development | yes | Bytes of physical memory returned to the OS. As defined by https://pkg.go.dev/runtime#MemStats | |
process.runtime.memstats.heap_sys | sum | int | By | development | yes | Bytes of heap memory obtained by the OS. As defined by https://pkg.go.dev/runtime#MemStats | |
process.runtime.memstats.last_pause | gauge | int | ns | development | yes | The most recent stop-the-world pause time. As defined by https://pkg.go.dev/runtime#MemStats | |
process.runtime.memstats.lookups | sum | int | {lookups} | development | no | Number of pointer lookups performed by the runtime. As defined by https://pkg.go.dev/runtime#MemStats | |
process.runtime.memstats.mallocs | sum (monotonic) | int | {objects} | development | yes | Cumulative count of heap objects allocated. As defined by https://pkg.go.dev/runtime#MemStats | |
process.runtime.memstats.mcache_inuse | sum | int | By | development | yes | Bytes of allocated mcache structures. As defined by https://pkg.go.dev/runtime#MemStats | |
process.runtime.memstats.mcache_sys | sum | int | By | development | yes | Bytes of memory obtained from the OS for mcache structures. As defined by https://pkg.go.dev/runtime#MemStats | |
process.runtime.memstats.mspan_inuse | sum | int | By | development | yes | Bytes of allocated mspan structures. As defined by https://pkg.go.dev/runtime#MemStats | |
process.runtime.memstats.mspan_sys | sum | int | By | development | yes | Bytes of memory obtained from the OS for mspan structures. As defined by https://pkg.go.dev/runtime#MemStats | |
process.runtime.memstats.next_gc | sum | int | By | development | yes | The target heap size of the next GC cycle. As defined by https://pkg.go.dev/runtime#MemStats | |
process.runtime.memstats.num_forced_gc | sum (monotonic) | int | By | development | yes | Number of GC cycles that were forced by the application calling the GC function. As defined by https://pkg.go.dev/runtime#MemStats | |
process.runtime.memstats.num_gc | sum (monotonic) | int | By | development | yes | Number of completed GC cycles. As defined by https://pkg.go.dev/runtime#MemStats | |
process.runtime.memstats.other_sys | sum | int | By | development | yes | Bytes of memory in miscellaneous off-heap runtime allocations. As defined by https://pkg.go.dev/runtime#MemStats | |
process.runtime.memstats.pause_total | sum (monotonic) | int | By | development | yes | The cumulative nanoseconds in GC stop-the-world pauses since the program started. As defined by https://pkg.go.dev/runtime#MemStats | |
process.runtime.memstats.stack_inuse | sum | int | By | development | yes | Bytes in stack spans. As defined by https://pkg.go.dev/runtime#MemStats | |
process.runtime.memstats.stack_sys | sum | int | By | development | yes | Bytes of stack memory obtained from the OS. As defined by https://pkg.go.dev/runtime#MemStats | |
process.runtime.memstats.sys | sum | int | By | development | yes | Total bytes of memory obtained from the OS. As defined by https://pkg.go.dev/runtime#MemStats | |
process.runtime.memstats.total_alloc | sum (monotonic) | int | By | development | no | Cumulative bytes allocated for heap objects. As defined by https://pkg.go.dev/runtime#MemStats |