Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics struct { CPUUtilization metrics.Gauge MemoUtilization metrics.Gauge //processes related monitor term ProcCPUUtilization metrics.Gauge ProcMemoUtilization metrics.Gauge ProcOpenedFilesNum metrics.Gauge ProcNum metrics.Gauge //storage related monitor term DiskUsedPercentage metrics.Gauge DiskFreeSpace metrics.Gauge //file related monitor term FileSize metrics.Gauge DirectorySize metrics.Gauge // contains filtered or unexported fields }
func PrometheusMetrics ¶
func PrometheusMetrics() *Metrics
PrometheusMetrics returns Metrics build using Prometheus client library.
func (Metrics) RecordMetrics ¶
func (metrics Metrics) RecordMetrics()
func (*Metrics) Start ¶
func (metrics *Metrics) Start(ctx context.CLIContext)
Click to show internal directories.
Click to hide internal directories.