package sysfs

import "github.com/prometheus/procfs/sysfs"

Package sysfs provides functions to retrieve system and kernel metrics from the pseudo-filesystem sys.

Index

Constants

const DefaultMountPoint = fs.DefaultSysMountPoint

DefaultMountPoint is the common mount point of the sys filesystem.

Types

type FS

type FS struct {
	// contains filtered or unexported fields
}

FS represents the pseudo-filesystem sys, which provides an interface to kernel data structures.

func NewFS

func NewFS(mountPoint string) (FS, error)

NewFS returns a new FS mounted under the given mountPoint. It will error if the mount point can't be read.

Source Files

doc.go fs.go

Version
v0.0.1
Published
May 29, 2019
Platform
windows/amd64
Imports
1 packages
Last checked
20 seconds ago

Tools for package owners.