Documentation ¶
Overview ¶
Package metrics implements the disk metrics collection and reporting.
Index ¶
- Constants
- func InitAveragers(db *sql.DB, tableName string)
- func ReadTotalBytes(ctx context.Context, since time.Time) (components_metrics_state.Metrics, error)
- func ReadUsedBytes(ctx context.Context, since time.Time) (components_metrics_state.Metrics, error)
- func ReadUsedBytesPercents(ctx context.Context, since time.Time) (components_metrics_state.Metrics, error)
- func Register(reg *prometheus.Registry, db *sql.DB, tableName string) error
- func SetFreeBytes(mountPoint string, bytes float64)
- func SetLastUpdateUnixSeconds(unixSeconds float64)
- func SetTotalBytes(ctx context.Context, mountPoint string, bytes float64, currentTime time.Time) error
- func SetUsedBytes(ctx context.Context, mountPoint string, bytes float64, currentTime time.Time) error
- func SetUsedBytesPercent(ctx context.Context, mountPoint string, pct float64, currentTime time.Time) error
- func SetUsedInodesPercent(mountPoint string, pct float64)
Constants ¶
View Source
const SubSystem = "disk"
Variables ¶
This section is empty.
Functions ¶
func InitAveragers ¶
func ReadTotalBytes ¶
func ReadUsedBytes ¶
func ReadUsedBytesPercents ¶
func SetFreeBytes ¶
func SetLastUpdateUnixSeconds ¶
func SetLastUpdateUnixSeconds(unixSeconds float64)
func SetTotalBytes ¶
func SetUsedBytes ¶
func SetUsedBytesPercent ¶
func SetUsedInodesPercent ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.