Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for handleStats (0.26 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)
  3. src/log/slog/handler.go

    	s := handleState{
    		h:       h,
    		buf:     buf,
    		freeBuf: freeBuf,
    		sep:     sep,
    		prefix:  buffer.New(),
    	}
    	if h.opts.ReplaceAttr != nil {
    		s.groups = groupPool.Get().(*[]string)
    		*s.groups = append(*s.groups, h.groups[:h.nOpenGroups]...)
    	}
    	return s
    }
    
    func (s *handleState) free() {
    	if s.freeBuf {
    		s.buf.Free()
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 18:18:13 UTC 2023
    - 17.5K bytes
    - Viewed (0)
Back to top