Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Detrio (0.27 sec)

  1. istioctl/pkg/metrics/metrics.go

    	case model.Vector:
    		if v.Len() < 1 {
    			log.Debugf("no values for query: %s", query)
    			return 0, nil
    		}
    
    		return float64(v[0].Value), nil
    	default:
    		return 0, errors.New("bad metric value type returned for query")
    	}
    }
    
    func convertLatencyToDuration(val float64) time.Duration {
    	return time.Duration(val) * time.Millisecond
    }
    
    func printHeader(writer io.Writer) {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  2. cmd/metrics.go

    	prometheus.MustRegister(minioVersionInfo)
    }
    
    // newMinioCollector describes the collector
    // and returns reference of minioCollector
    // It creates the Prometheus Description which is used
    // to define metric and  help string
    func newMinioCollector() *minioCollector {
    	return &minioCollector{
    		desc: prometheus.NewDesc("minio_stats", "Statistics exposed by MinIO server", nil, nil),
    	}
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 02 06:48:36 GMT 2024
    - 16.9K bytes
    - Viewed (0)
Back to top