Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for cp_time2 (0.18 sec)

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

    )
    
    func loadProcStatMetrics(ctx context.Context, stat procfs.ProcStat, m MetricValues) {
    	if stat.CPUTime() > 0 {
    		m.Set(processCPUTotalSeconds, float64(stat.CPUTime()))
    	}
    
    	if stat.ResidentMemory() > 0 {
    		m.Set(processResidentMemoryBytes, float64(stat.ResidentMemory()))
    	}
    
    	if stat.VirtualMemory() > 0 {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Apr 26 16:07:23 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  2. cmd/metrics-realtime.go

    	if types.Contains(madmin.MetricsCPU) {
    		m.Aggregated.CPU = &madmin.CPUMetrics{
    			CollectedAt: UTCNow(),
    		}
    		cm, err := c.Times(false)
    		if err != nil {
    			m.Errors = append(m.Errors, fmt.Sprintf("%s: %v (cpuTimes)", byHostName, err.Error()))
    		} else {
    			// not collecting per-cpu stats, so there will be only one element
    			if len(cm) == 1 {
    				m.Aggregated.CPU.TimesStat = &cm[0]
    			} else {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Jun 01 05:16:24 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  3. cmd/metrics-v2.go

    				MetricV2{
    					Description: getMinIOProcessVirtualMemory(),
    					Value:       float64(stat.VirtualMemory()),
    				})
    		}
    
    		if stat.CPUTime() > 0 {
    			metrics = append(metrics,
    				MetricV2{
    					Description: getMinIOProcessCPUTime(),
    					Value:       stat.CPUTime(),
    				})
    		}
    		return
    	})
    	return mg
    }
    
    func getGoMetrics() *MetricsGroupV2 {
    	mg := &MetricsGroupV2{
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:54 UTC 2024
    - 131.9K bytes
    - Viewed (0)
Back to top