Documentation ¶
Overview ¶
Package fsstat implements metrics collection related to filesystem usage
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FSStat ¶
FSStat represents file system statistics for all filesystems found on this OS
func New ¶
func New(m *metrics.MetricContext, Step time.Duration) *FSStat
New registers with metriccontext and collects filesystem stats every Step
type PerFSStat ¶
type PerFSStat struct { IsMounted bool Name string Bsize *metrics.Gauge Blocks *metrics.Gauge Bfree *metrics.Gauge Bavail *metrics.Gauge Files *metrics.Gauge Ffree *metrics.Gauge // Computed stats UsagePct *metrics.Gauge FileUsagePct *metrics.Gauge // contains filtered or unexported fields }
PerFSStat represents type for filesystem specific information including associated metrics
func NewPerFSStat ¶
func NewPerFSStat(m *metrics.MetricContext, mp string) *PerFSStat
NewPerFSStat registers with metriccontext for the particular filesystem
func (*PerFSStat) Collect ¶
func (s *PerFSStat) Collect()
Collect calls statfs and populates stats for a particular filesystem
func (*PerFSStat) Unregister ¶
func (s *PerFSStat) Unregister()
Unregister removes metrics from metric-context
Click to show internal directories.
Click to hide internal directories.