Documentation
¶
Overview ¶
Package runtimefs provides a FUSE filesystem that exposes runtime/metrics data as files and directories.
Metrics are organized in a directory hierarchy that mirrors their names.
Single value metrics (kind Float64, Uint64) ¶
Single value metrics are represented as a directory containing:
- a file named after the unit (e.g. bytes, seconds) that contains the current value
- a file named "description" that contains the metric description
- a file named "cumulative" (1 or 0) that indicates whether the metric is cumulative or not
For example, /memory/classes/heap/objects is shown as:
<mount_dir>/memory/classes/heap/objects/ ├── bytes ├── cumulative └── description
Histogram metrics (kind Float64Histogram) ¶
Histogram metrics are represented as a directory containing:
- a file named after the unit (e.g. bytes, seconds) that contains the current value (one line per bucket)
- a file named "buckets" that contains the bucket boundaries (one line per boundary)
- a file named "description" that contains the metric description
- a file named "cumulative" (1 or 0) that indicates whether the metric is cumulative or not
For example, /sched/pauses/total/gc is shown as:
<mount_dir>/sched/pauses/total/gc/ ├── buckets ├── bytes ├── cumulative └── description
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UnmountFunc ¶
type UnmountFunc func() error
UnmountFunc is the type of the function to unmount the filesystem.
func Mount ¶
func Mount(dirpath string) (UnmountFunc, error)
Mount mounts the runtime metrics filesystem at the given directory path. It returns a function to unmount the filesystem, or an error if the mount operation failed.