feat(metrics): включить percentiles-histogram для http.server.requests
Spring Boot Micrometer по дефолту эмитит только _count/_sum/_max для http.server.requests — без _bucket нельзя посчитать histogram_quantile() в Prometheus, p50/p95/p99 latency дашборды получают "No data". Включён percentiles-histogram + кастомные SLO bucket boundaries от 5ms до 5s — покрывают realistic range read-api JSON endpoints. Server-side histograms точнее client-side percentiles (по которым нельзя aggregate across instances). Применить: build + push image + helm upgrade. После рестарта ordinis-app/read-api/projection-writer Grafana дашборды покажут latency графики.
This commit is contained in:
@@ -33,6 +33,11 @@ management:
|
||||
tags:
|
||||
application: ${spring.application.name}
|
||||
environment: ${ENVIRONMENT:dev}
|
||||
distribution:
|
||||
percentiles-histogram:
|
||||
http.server.requests: true
|
||||
slo:
|
||||
http.server.requests: 5ms,10ms,25ms,50ms,100ms,250ms,500ms,1s,2s,5s
|
||||
|
||||
logging:
|
||||
level:
|
||||
|
||||
Reference in New Issue
Block a user