Skip to content

Commit beacffc

Browse files
committed
fix api lantency metrics
1 parent 78dd453 commit beacffc

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

utils/prometheusmetrics/prometheusmetrics.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ var (
8585
prometheus.SummaryOpts{
8686
Name: "awscni_aws_api_latency_ms",
8787
Help: "AWS API call latency in ms",
88+
Objectives: map[float64]float64{
89+
0.5: 0.05, // p50 ±5%
90+
0.99: 0.001, // p99 ±0.1%
91+
},
8892
},
8993
[]string{"api", "error", "status"},
9094
)

0 commit comments

Comments
 (0)