Documentation
¶
Overview ¶
Package fd tracks the number of file descriptors used on the host.
Index ¶
Constants ¶
View Source
const ( StateNameFileDescriptors = "file_descriptors" // The number of running PIDs returned by https://pkg.go.dev/github.com/shirou/gopsutil/v4/process#Pids. StateKeyRunningPIDs = "running_pids" StateKeyUsage = "usage" StateKeyLimit = "limit" StateKeyUsedPercent = "used_percent" )
View Source
const Name = "file-descriptor"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Query query_config.Config `json:"query"`
}
type Output ¶
type Output struct { RunningPIDs uint64 `json:"running_pids"` Usage uint64 `json:"usage"` Limit uint64 `json:"limit"` UsedPercent string `json:"used_percent"` Errors []string `json:"errors,omitempty"` }
func ParseOutputJSON ¶
func ParseStatesToOutput ¶
func ParseStatesToOutput(states ...components.State) (*Output, error)
func (Output) GetUsedPercent ¶
Click to show internal directories.
Click to hide internal directories.