Documentation ¶
Overview ¶
Package metrics implements the file descriptor metrics collection and reporting.
Index ¶
- Constants
- func InitAveragers(db *sql.DB, tableName string)
- func ReadAllocatedFileHandles(ctx context.Context, since time.Time) (components_metrics_state.Metrics, error)
- func ReadAllocatedFileHandlesPercents(ctx context.Context, since time.Time) (components_metrics_state.Metrics, error)
- func ReadLimits(ctx context.Context, since time.Time) (components_metrics_state.Metrics, error)
- func ReadRunningPIDs(ctx context.Context, since time.Time) (components_metrics_state.Metrics, error)
- func ReadThresholdUsedPercents(ctx context.Context, since time.Time) (components_metrics_state.Metrics, error)
- func ReadUsedPercents(ctx context.Context, since time.Time) (components_metrics_state.Metrics, error)
- func Register(reg *prometheus.Registry, db *sql.DB, tableName string) error
- func SetAllocatedFileHandles(ctx context.Context, handles float64, currentTime time.Time) error
- func SetAllocatedFileHandlesPercent(ctx context.Context, pct float64, currentTime time.Time) error
- func SetLastUpdateUnixSeconds(unixSeconds float64)
- func SetLimit(ctx context.Context, v float64, currentTime time.Time) error
- func SetRunningPIDs(ctx context.Context, pids float64, currentTime time.Time) error
- func SetThresholdAllocatedFileHandles(ctx context.Context, handles float64) error
- func SetThresholdAllocatedFileHandlesPercent(ctx context.Context, pct float64, currentTime time.Time) error
- func SetThresholdRunningPIDs(ctx context.Context, limit float64) error
- func SetThresholdRunningPIDsPercent(ctx context.Context, pct float64, currentTime time.Time) error
- func SetUsedPercent(ctx context.Context, pct float64, currentTime time.Time) error
Constants ¶
View Source
const SubSystem = "fd"
Variables ¶
This section is empty.
Functions ¶
func InitAveragers ¶
func ReadAllocatedFileHandles ¶ added in v0.3.1
func ReadAllocatedFileHandlesPercents ¶ added in v0.3.1
func ReadLimits ¶
func ReadRunningPIDs ¶
func ReadUsedPercents ¶
func SetAllocatedFileHandles ¶ added in v0.3.1
func SetAllocatedFileHandlesPercent ¶ added in v0.3.1
func SetLastUpdateUnixSeconds ¶
func SetLastUpdateUnixSeconds(unixSeconds float64)
func SetRunningPIDs ¶
func SetThresholdAllocatedFileHandles ¶ added in v0.3.1
func SetThresholdAllocatedFileHandlesPercent ¶ added in v0.3.1
func SetThresholdRunningPIDs ¶ added in v0.3.1
func SetThresholdRunningPIDsPercent ¶ added in v0.3.1
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.