Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for printHeader (0.16 sec)

  1. istioctl/pkg/metrics/metrics_test.go

    			},
    		},
    	}
    	workload := "details"
    
    	sm, err := metrics(mockProm, workload, time.Minute)
    	if err != nil {
    		t.Fatalf("Unwanted exception %v", err)
    	}
    
    	var out bytes.Buffer
    	printHeader(&out)
    	printMetrics(&out, sm)
    	output := out.String()
    
    	expectedOutput := `                                  WORKLOAD    TOTAL RPS    ERROR RPS  P50 LATENCY  P90 LATENCY  P99 LATENCY
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Oct 25 02:07:44 GMT 2023
    - 7.9K bytes
    - Viewed (0)
  2. istioctl/pkg/metrics/metrics.go

    	promAPI, err := prometheusAPI(fmt.Sprintf("http://%s", fw.Address()))
    	if err != nil {
    		return fmt.Errorf("failure running port forward process: %v", err)
    	}
    
    	printHeader(c.OutOrStdout())
    
    	workloads := args
    	for _, workload := range workloads {
    		sm, err := metrics(promAPI, workload, metricsDuration)
    		if err != nil {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 8.4K bytes
    - Viewed (0)
Back to top