Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Kubernetes Blog 5 min read Release mediumAdept

Kubernetes v1.37: Native Histograms Graduates to Beta

Kubernetes v1.37 promotes native histogram support (KEP-5808) to Beta, on by default, so control plane and node components expose Prometheus Native Histograms with exponential buckets alongside classic ones. The implementation lives in k8s.io/component-base/metrics, defaults to BucketFactor 1.1 (about 5% worst-case quantile error) and MaxBucketNumber 160, and uses dual exposition over Protobuf so existing dashboards keep working. To migrate, enable scrape_native_histograms per job in Prometheus 3.x and keep always_scrape_classic_histograms: true during the transition. Native histograms let PromQL histogram_quantile run on the metric name directly without _bucket suffixes or sum by (le).

Assumes: Prometheus histogramsPromQLKubernetes control plane components

Related posts

  • Kubernetes v1.37: Metrics API graduates to stable

    Kubernetes Blog mediumAdept

    Kubernetes v1.37 graduates the metrics.k8s.io resource Metrics API, which supplies node and Pod CPU and memory usage to kubectl top and the HorizontalPodAutoscaler, to stable v1. The v1 surface is identical to v1beta1, with the same NodeMetrics and PodMetrics types and no field or semantic changes. kubectl top prefers v1 and falls back to v1beta1, but the HPA controller still only supports v1beta1. Metrics implementations such as metrics-server must serve v1 and register a v1.metrics.k8s.io APIService, and should keep serving both versions during the transition.

  • Building a Custom Metrics Exporter for Kubernetes

    Kubernetes Blog mediumAdept

    A Prometheus metrics exporter is a small HTTP server exposing application state on /metrics, letting Kubernetes workloads surface signals like queue depth or job latency beyond CPU and memory. A Go exporter built with client_golang registers a counter, gauge and histogram named <namespace>_<name>_<unit>, refreshes them in a polling loop shorter than the 15s scrape interval, and serves a separate /healthz probe. The setup ships as a multi-stage distroless image, runs as a Deployment plus a named-port Service, and is scraped via a ServiceMonitor whose release label must match the Prometheus selector, or via annotation-based discovery. Prometheus Adapter is the next step for feeding these metrics to the HorizontalPodAutoscaler.

  • How Tesla built a quadrillion-scale observability platform on ClickHouse

    ClickHouse easyNovice

    Tesla built Comet, an in-house metrics platform that stores Prometheus-style time series in ClickHouse and keeps full PromQL compatibility. Tesla rejected Prometheus because it cannot scale horizontally and runs as a single server. In Comet, OpenTelemetry collectors feed a Kafka-compatible queue, and custom ETL converts OTLP into batched ClickHouse rows. A transpiler turns PromQL into ClickHouse SQL and returns responses byte-identical to the Prometheus API, so existing Grafana dashboards and alerts work unchanged, and a test suite runs the same queries against both systems to confirm matching results. A load test sustained one billion rows per second for 11 days, past one quadrillion rows, with flat CPU and memory, and the same transpiler approach now supports TraceQL for traces.

  • Whats new in ClickStack - June + July

    ClickHouse mediumAdept

    ClickStack's June–July update centers on traces: per-service colors in the waterfall, fixed-pixel minimum span widths, a minimap for navigating long traces, and display of OpenTelemetry span links. Metrics gain an experimental proxy to external Prometheus-compatible endpoints for hybrid migration to the ClickHouse TimeSeries Engine, plus quantile support for exponential histograms via scale normalization, offset alignment and log-linear interpolation matching Prometheus. Filter values and autocomplete now try ClickHouse text indexes via mergeTreeTextIndex() (26.3+) before metadata rollups and table scans. Other additions include cascading dashboard filters, consecutive-window alerts with a PENDING state, categorical bar charts, event-pattern tiles, kiosk mode, and expanded External API v2 CRUD.

  • From Custom to Open: Scalable Network Probing and HTTP/3 Readiness with Prometheus

    Slack Engineering easyNovice

    Slack's HTTP/3 rollout exposed a client-side observability gap: HTTP/3 runs over QUIC on UDP, and neither the commercial SaaS probing tools Slack evaluated nor the Prometheus Blackbox Exporter could probe QUIC endpoints. An intern added HTTP/3 support to Blackbox Exporter using quic-go's http3.Transport, kept it consistent with the exporter's existing configuration patterns, and upstreamed the change. While the PR awaited merge, he also built an in-house probing system on top of it. Slack now sees HTTP/1.1, HTTP/2 and HTTP/3 metrics side by side in Grafana, which gives it more reliable alerts and makes regressions to HTTP/2 easier to spot.

The quest for software engineering knowledge.

Look:
Layout: