Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for RecordStartupTime (0.48 sec)

  1. pilot/cmd/pilot-agent/metrics/metrics.go

    		"The total number of scrapes.",
    	)
    )
    
    var (
    	ScrapeTypeEnvoy = "envoy"
    	ScrapeTypeApp   = "application"
    	ScrapeTypeAgent = "agent"
    )
    
    var processStartTime = time.Now()
    
    func RecordStartupTime() {
    	delta := time.Since(processStartTime)
    	startupTime.Record(delta.Seconds())
    	log.Infof("Readiness succeeded in %v", delta)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 24 04:04:42 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  2. pilot/cmd/pilot-agent/status/ready/probe.go

    	// serving traffic and we can rely on that.
    	if p.atleastOnceReady {
    		return nil
    	}
    
    	err := checkEnvoyStats(p.LocalHostAddr, p.AdminPort)
    	if err == nil {
    		metrics.RecordStartupTime()
    		p.atleastOnceReady = true
    	}
    	return err
    }
    
    type ServerInfoState int32
    
    const (
    	// Server is live and serving traffic.
    	Live ServerInfoState = 0
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 02 00:35:05 UTC 2024
    - 4.5K bytes
    - Viewed (0)
Back to top