Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for FileDescriptorsLen (0.24 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
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jun 20 17:55:03 UTC 2024
    - 6.5K 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,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 131.9K bytes
    - Viewed (0)
Back to top