Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. pilot/cmd/pilot-agent/status/server_test.go

    				http:           &http.Client{},
    				registry:       TestingRegistry(t),
    			}
    			req := &http.Request{}
    			server.handleStats(rec, req)
    			if rec.Code != 200 {
    				t.Fatalf("handleStats() => %v; want 200", rec.Code)
    			}
    			if !strings.Contains(rec.Body.String(), tt.output) {
    				t.Fatalf("handleStats() => %v; want %v", rec.Body.String(), tt.output)
    			}
    
    			parser := expfmt.TextParser{}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  2. pilot/cmd/pilot-agent/status/server.go

    	// Add the handler for ready probes.
    	mux.HandleFunc(readyPath, s.handleReadyProbe)
    	// Default path for prom
    	mux.HandleFunc(`/metrics`, s.handleStats)
    	// Envoy uses something else - and original agent used the same.
    	// Keep for backward compat with configs.
    	mux.HandleFunc(`/stats/prometheus`, s.handleStats)
    	mux.HandleFunc(quitPath, s.handleQuit)
    	mux.HandleFunc(drainPath, s.handleDrain)
    	mux.HandleFunc("/app-health/", s.handleAppProbe)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 31.1K bytes
    - Viewed (1)
Back to top