Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for prop (0.13 sec)

  1. internal/net/net.go

    	"github.com/prometheus/procfs"
    )
    
    // GetInterfaceNetStats - get procfs.NetDevLine by interfaceName
    func GetInterfaceNetStats(interf string) (procfs.NetDevLine, error) {
    	proc, err := procfs.Self()
    	if err != nil {
    		return procfs.NetDevLine{}, err
    	}
    	netDev, err := proc.NetDev()
    	if err != nil {
    		return procfs.NetDevLine{}, err
    	}
    	ndl, ok := netDev[interf]
    	if !ok {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Jul 17 08:14:01 GMT 2023
    - 1.2K bytes
    - Viewed (0)
  2. docs/debugging/reorder-disks/main.go

    	result := make(map[string]string)
    
    	mountInfo, err := os.Open("/proc/self/mountinfo")
    	if err != nil {
    		return nil, err
    	}
    	defer mountInfo.Close()
    
    	scanner := bufio.NewScanner(mountInfo)
    	for scanner.Scan() {
    		s := strings.Split(scanner.Text(), " ")
    		if len(s) != 11 {
    			return nil, errors.New("unsupported /proc/self/mountinfo format")
    		}
    		result[s[2]] = s[9]
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  3. cmd/metrics-v2.go

    		Type:      counterMetric,
    	}
    }
    
    func getMinioProcessIOReadBytesMD() MetricDescription {
    	return MetricDescription{
    		Namespace: nodeMetricNamespace,
    		Subsystem: ioSubsystem,
    		Name:      readBytes,
    		Help:      "Total bytes read by the process from the underlying storage system, /proc/[pid]/io read_bytes",
    		Type:      counterMetric,
    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)
  4. internal/mountinfo/mountinfo_linux_test.go

    	// Success case, where path doesn't have any mounts.
    	{
    		if err = mounts.checkCrossMounts("/path/to/x"); err != nil {
    			t.Fatalf("Expected success, failed instead (%s)", err)
    		}
    	}
    }
    
    // Tests read proc mounts file.
    func TestReadProcmountInfos(t *testing.T) {
    	successCase := `/dev/0 /path/to/0 type0 flags 0 0
    		/dev/1    /path/to/1   type1	flags 1 1
    		/dev/2 /path/to/2 type2 flags,1,2=3 2 2
    		`
    	var err error
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  5. internal/s3select/sql/evaluate.go

    //
    // During evaluation, the query is known to be valid, as analysis is
    // complete. The only errors possible are due to value type
    // mismatches, etc.
    //
    // If an aggregation node is present as a descendant (when
    // e.prop.isAggregation is true), we call evalNode on all child nodes,
    // check for errors, but do not perform any combining of the results
    // of child nodes. The final result row is returned after all rows are
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Dec 23 07:19:11 GMT 2023
    - 12K bytes
    - Viewed (0)
  6. internal/grid/muxclient.go

    		if r.Err != nil {
    			if debugPrint {
    				fmt.Println("Closing mux", m.MuxID, "due to error:", r.Err)
    			}
    			m.closeLocked()
    		}
    		return true
    	default:
    		if m.stateless {
    			// Drop message if not stateful.
    			return
    		}
    		err := errors.New("INTERNAL ERROR: Response was blocked")
    		gridLogIf(m.ctx, err)
    		m.closeLocked()
    		return false
    	}
    }
    
    func (m *muxClient) close() {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 14.2K bytes
    - Viewed (0)
  7. docs/metrics/v3.md

    | `io_read_bytes`               | `counter` | Total bytes read by the process from the underlying storage system, /proc/[pid]/io read_bytes                  | `server` |
    | `io_wchar_bytes`              | `counter` | Total bytes written by the process to the underlying storage system including page cache, /proc/[pid]/io wchar | `server` |
    Plain Text
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 17:37:57 GMT 2024
    - 28.5K bytes
    - Viewed (0)
  8. docs/metrics/prometheus/list.md

    | `minio_node_io_read_bytes`                 | Total bytes read by the process from the underlying storage system, /proc/[pid]/io read_bytes.                  |
    | `minio_node_io_wchar_bytes`                | Total bytes written by the process to the underlying storage system including page cache, /proc/[pid]/io wchar. |
    Plain Text
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 22:01:31 GMT 2024
    - 43.4K bytes
    - Viewed (2)
  9. cmd/xl-storage.go

    	var xlMeta xlMetaV2
    	var legacyPreserved bool
    	var legacyEntries []string
    	if len(dstBuf) > 0 {
    		if isXL2V1Format(dstBuf) {
    			if err = xlMeta.Load(dstBuf); err != nil {
    				// Data appears corrupt. Drop data.
    				xlMeta = xlMetaV2{}
    			}
    		} else {
    			// This code-path is to preserve the legacy data.
    			xlMetaLegacy := &xlMetaV1Object{}
    			json := jsoniter.ConfigCompatibleWithStandardLibrary
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  10. cmd/metrics-v3-handler.go

    		// hence not included in the collector path.
    		pathComponents = pathComponents[:bucketIdx]
    	}
    
    	innerHandler := h.handle(pathComponents, isListingRequest, buckets)
    
    	// Add tracing to the prom. handler
    	tracedHandler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
    		tc, ok := r.Context().Value(mcontext.ContextTraceKey).(*mcontext.TraceCtxt)
    		if ok {
    			tc.FuncName = "handler.MetricsV3"
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 17:37:57 GMT 2024
    - 7.5K bytes
    - Viewed (0)
Back to top