Skip to content

[Draft] Added HTTP server metrics modes with bounded VictoriaMetrics histograms - #736

Draft
GoodforGod wants to merge 2 commits into
masterfrom
feature/telemetry-metrics-victoria-metric-and-summary
Draft

[Draft] Added HTTP server metrics modes with bounded VictoriaMetrics histograms#736
GoodforGod wants to merge 2 commits into
masterfrom
feature/telemetry-metrics-victoria-metric-and-summary

Conversation

@GoodforGod

Copy link
Copy Markdown
Contributor

Added HTTP server metrics modes with bounded VictoriaMetrics histograms

EN

Added configurable HTTP server duration metric modes for summary, SLO, and VictoriaMetrics output. VM mode exports vmrange buckets through a Micrometer-backed collector while bounding exported bucket cardinality with metrics.vm.min, metrics.vm.max, and metrics.vm.buckets;

SLO mode remains the default.


RU

Добавлены настраиваемые режимы метрик длительности HTTP server: summary, SLO и VictoriaMetrics. Режим VM отдает buckets через vmrange и ограничивает их количество настройками metrics.vm.min, metrics.vm.max и metrics.vm.buckets;

режим SLO остается значением по умолчанию.


  • Added summary, slo, and vm metrics modes for HTTP server duration metrics with slo as the default compatibility mode.
  • Added VictoriaMetricsHistogram with native VM bucket ranges, exact _count and _sum, and bounded exported vmrange buckets per label set.
  • Added nested VM configuration under metrics.vm with defaults min = 1ms, max = 90s, and buckets = 16.

VictoriaMetrics Mode

Added VM histogram export for Prometheus-backed Micrometer registries. Values are recorded into the VM bucket grid, while scrape output is bounded by merging observed ranges outside or above the configured bucket limit.

httpServer.telemetry.metrics.mode = "vm"
httpServer.telemetry.metrics.vm.min = "1ms"
httpServer.telemetry.metrics.vm.max = "90s"
httpServer.telemetry.metrics.vm.buckets = 16

Added configurable HTTP server duration metric modes for summary, SLO, and VictoriaMetrics output. VM mode exports vmrange buckets through a Micrometer-backed collector while bounding exported bucket cardinality with metrics.vm.min, metrics.vm.max, and metrics.vm.buckets defaults.

- Added VictoriaMetrics histogram support with native VM bucket ranges, exact count and sum, and bounded bucket export per label set.
- Added HTTP server metric mode selection so VM mode is used only for PrometheusMeterRegistry and existing SLO behavior remains the default.
@GoodforGod GoodforGod added this to the v2.0.0 milestone Jul 18, 2026
@GoodforGod
GoodforGod requested a review from Squiry July 18, 2026 19:53
@GoodforGod GoodforGod added the module: telemetry Related to Telemetry module label Jul 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module: telemetry Related to Telemetry module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant