Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for FileDescriptorsLen (0.2 sec)

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

    			m.Set(processFileDescriptorLimitTotal, float64(l.OpenFiles))
    		}
    
    		if l.AddressSpace > 0 {
    			m.Set(processVirtualMemoryMaxBytes, float64(l.AddressSpace))
    		}
    	}
    
    	openFDs, err := p.FileDescriptorsLen()
    	if err != nil {
    		metricsLogIf(ctx, err)
    	} else if openFDs > 0 {
    		m.Set(processFileDescriptorOpenTotal, float64(openFDs))
    	}
    }
    
    // loadProcessMetrics - `MetricsLoaderFn` for process metrics
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 26 16:07:23 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  2. cmd/metrics-v2.go

    			return nil
    		}
    
    		p, err := procfs.Self()
    		if err != nil {
    			internalLogOnceIf(ctx, err, string(nodeMetricNamespace))
    			return
    		}
    
    		openFDs, _ := p.FileDescriptorsLen()
    		l, _ := p.Limits()
    		io, _ := p.IO()
    		stat, _ := p.Stat()
    		startTime, _ := stat.StartTime()
    
    		metrics = make([]MetricV2, 0, 20)
    
    		if openFDs > 0 {
    			metrics = append(metrics,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 22:01:31 GMT 2024
    - 132.6K bytes
    - Viewed (0)
Back to top