mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Merge pull request #107042 from kkkkun/update_metrics_bucket
Update etcdRequestLatency metrics bucket size
This commit is contained in:
		@@ -94,7 +94,7 @@ var (
 | 
				
			|||||||
			// This metric is used for verifying api call latencies SLO,
 | 
								// This metric is used for verifying api call latencies SLO,
 | 
				
			||||||
			// as well as tracking regressions in this aspects.
 | 
								// as well as tracking regressions in this aspects.
 | 
				
			||||||
			// Thus we customize buckets significantly, to empower both usecases.
 | 
								// Thus we customize buckets significantly, to empower both usecases.
 | 
				
			||||||
			Buckets: []float64{0.05, 0.1, 0.2, 0.4, 0.6, 0.8, 1.0, 1.25, 1.5, 2, 3,
 | 
								Buckets: []float64{0.005, 0.025, 0.05, 0.1, 0.2, 0.4, 0.6, 0.8, 1.0, 1.25, 1.5, 2, 3,
 | 
				
			||||||
				4, 5, 6, 8, 10, 15, 20, 30, 45, 60},
 | 
									4, 5, 6, 8, 10, 15, 20, 30, 45, 60},
 | 
				
			||||||
			StabilityLevel: compbasemetrics.STABLE,
 | 
								StabilityLevel: compbasemetrics.STABLE,
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -38,7 +38,11 @@ var (
 | 
				
			|||||||
			Name: "etcd_request_duration_seconds",
 | 
								Name: "etcd_request_duration_seconds",
 | 
				
			||||||
			Help: "Etcd request latency in seconds for each operation and object type.",
 | 
								Help: "Etcd request latency in seconds for each operation and object type.",
 | 
				
			||||||
			// Etcd request latency in seconds for each operation and object type.
 | 
								// Etcd request latency in seconds for each operation and object type.
 | 
				
			||||||
			Buckets:        []float64{0.005, 0.025, 0.1, 0.25, 0.5, 1.0, 2.0, 4.0, 15.0, 30.0, 60.0},
 | 
								// This metric is used for verifying etcd api call latencies SLO
 | 
				
			||||||
 | 
								// keep consistent with apiserver metric 'requestLatencies' in
 | 
				
			||||||
 | 
								// staging/src/k8s.io/apiserver/pkg/endpoints/metrics/metrics.go
 | 
				
			||||||
 | 
								Buckets: []float64{0.005, 0.025, 0.05, 0.1, 0.2, 0.4, 0.6, 0.8, 1.0, 1.25, 1.5, 2, 3,
 | 
				
			||||||
 | 
									4, 5, 6, 8, 10, 15, 20, 30, 45, 60},
 | 
				
			||||||
			StabilityLevel: compbasemetrics.ALPHA,
 | 
								StabilityLevel: compbasemetrics.ALPHA,
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
		[]string{"operation", "type"},
 | 
							[]string{"operation", "type"},
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -230,6 +230,8 @@
 | 
				
			|||||||
  - verb
 | 
					  - verb
 | 
				
			||||||
  - version
 | 
					  - version
 | 
				
			||||||
  buckets:
 | 
					  buckets:
 | 
				
			||||||
 | 
					  - 0.005
 | 
				
			||||||
 | 
					  - 0.025
 | 
				
			||||||
  - 0.05
 | 
					  - 0.05
 | 
				
			||||||
  - 0.1
 | 
					  - 0.1
 | 
				
			||||||
  - 0.2
 | 
					  - 0.2
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user