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:
@@ -31,6 +31,18 @@ management:
|
||||
tags:
|
||||
application: ${spring.application.name}
|
||||
environment: ${ENVIRONMENT:dev}
|
||||
distribution:
|
||||
# Включаем server-side histogram buckets для http.server.requests —
|
||||
# без них histogram_quantile() в Prometheus возвращает empty
|
||||
# (только _count/_sum/_max). Используется в Grafana dashboard
|
||||
# ordinis-overview для p50/p95/p99 latency.
|
||||
percentiles-histogram:
|
||||
http.server.requests: true
|
||||
# Service-level objectives bucket boundaries (на каких границах
|
||||
# эмитить _bucket counters). Покрывают range от 5ms до 5s — типичный
|
||||
# для read-api JSON endpoint.
|
||||
slo:
|
||||
http.server.requests: 5ms,10ms,25ms,50ms,100ms,250ms,500ms,1s,2s,5s
|
||||
|
||||
otel:
|
||||
exporter:
|
||||
|
||||
Reference in New Issue
Block a user