Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for loadCPUMetrics (0.07 sec)

  1. cmd/metrics-v3-system-cpu.go

    	sysCPUSystemMD    = NewGaugeMD(sysCPUSystem, "CPU system time")
    	sysCPUUserMD      = NewGaugeMD(sysCPUUser, "CPU user time")
    )
    
    // loadCPUMetrics - `MetricsLoaderFn` for system CPU metrics.
    func loadCPUMetrics(ctx context.Context, m MetricValues, c *metricsCache) error {
    	cpuMetrics, _ := c.cpuMetrics.Get()
    
    	if cpuMetrics.LoadStat != nil {
    		m.Set(sysCPULoad, cpuMetrics.LoadStat.Load1)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jun 20 17:55:03 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. cmd/metrics-v3-cache.go

    		return
    	}
    
    	return cachevalue.NewFromFunc(1*time.Minute,
    		cachevalue.Opts{ReturnLastGood: true},
    		loadDriveMetrics)
    }
    
    func newCPUMetricsCache() *cachevalue.Cache[madmin.CPUMetrics] {
    	loadCPUMetrics := func(ctx context.Context) (v madmin.CPUMetrics, err error) {
    		var types madmin.MetricType = madmin.MetricsCPU
    
    		m := collectLocalMetrics(types, collectMetricsOpts{
    			hosts: map[string]struct{}{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 09 00:51:34 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  3. cmd/metrics-v3.go

    		[]MetricDescriptor{
    			sysCPUAvgIdleMD,
    			sysCPUAvgIOWaitMD,
    			sysCPULoadMD,
    			sysCPULoadPercMD,
    			sysCPUNiceMD,
    			sysCPUStealMD,
    			sysCPUSystemMD,
    			sysCPUUserMD,
    		},
    		loadCPUMetrics,
    	)
    
    	systemProcessMG := NewMetricsGroup(systemProcessCollectorPath,
    		[]MetricDescriptor{
    			processLocksReadTotalMD,
    			processLocksWriteTotalMD,
    			processCPUTotalSecondsMD,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Aug 02 00:55:27 UTC 2024
    - 13.6K bytes
    - Viewed (0)
Back to top