Documentation ¶
Overview ¶
Package metrics implements the file descriptor metrics collection and reporting.
Index ¶
- Constants
- func InitAveragers(db *sql.DB, tableName string)
- 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 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 SetThresholdLimit(ctx context.Context, limit float64) error
- func SetThresholdUsedPercent(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 ReadLimits ¶
func ReadRunningPIDs ¶
func ReadUsedPercents ¶
func SetLastUpdateUnixSeconds ¶
func SetLastUpdateUnixSeconds(unixSeconds float64)
func SetRunningPIDs ¶
func SetThresholdUsedPercent ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.