Skip to content

Instantly share code, notes, and snippets.

@bysnupy
Created October 19, 2019 07:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bysnupy/6f4f5e2b13ab2f92ad503a0139bda3a3 to your computer and use it in GitHub Desktop.
Save bysnupy/6f4f5e2b13ab2f92ad503a0139bda3a3 to your computer and use it in GitHub Desktop.
PLEG is not healthy getpods source code in relist
//// pkg/kubelet/pleg/generic.go - relist()
  :
  // get a current timestamp
  timestamp := g.clock.Now()

  // kubelet_pleg_relist_latency_microseconds for prometheus metrics
	defer func() {
		metrics.PLEGRelistLatency.Observe(metrics.SinceInMicroseconds(timestamp))
	}()
  
  // Get all the pods.
	podList, err := g.runtime.GetPods(true)
  :
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment