Skip to content

prober: aether_probe_request_duration_seconds records SECONDS into the OTel default (millisecond-oriented) bucket boundaries — every ~2 s timeout lands in le=5, latency panels are flat #732

Closed

Description

@bpalermo

Summary

prober/internal/prober records time.Since(start).Seconds() into aether_probe_request_duration_seconds using the OTel SDK's default explicit boundaries (0, 5, 10, 25, 50, 75, 100, 250, 500, 750, 1000, 2500, 5000, 7500, 10000), which are designed for milliseconds. With values in seconds the first bucket is "≤5 s", so a 2 ms probe and a 2 s timeout are indistinguishable. Control-tested during the #728 validation: all 18,394 pre-fix ~2 s timeout observations on one prober sit in le=5, identical to +Inf.

Consequences

Fix

Set explicit seconds-oriented boundaries via the instrument's metric.WithExplicitBucketBoundaries(...) — e.g. 0.001, 0.0025, 0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 0.75, 1, 1.5, 2, 2.5, 5 — so the 1 s resolver retransmit, the 2 s probe budget and sub-10 ms healthy probes each land in their own buckets. Check the same mistake in every other *_seconds histogram in the repo (agent, mesh-dns aether_mesh_dns_query_duration_seconds — that one was read successfully at p99 87.5 ms on 09-05, so it may already carry explicit buckets; verify). Update the Grafana prober panels in k8s-talos-main if they hard-code bucket labels.

Found during the #728 validation (10 mesh-dns rolls, 2026-09-06). Refs #726, #729, #728.

Activity

  1. bpalermo commented on Sep 6, 2026

    @bpalermo
    OwnerAuthor

    Validated on talos-main (rev206 = chart 0.92.7-6b1d5a3, prober chart 0.2.0-6b1d5a3, 2026-09-06 14:47–15:01Z)

    Prober pods recreated 14:52–14:54Z with the new image; reads on the new pods only, [5m] at 15:01Z:

    tier p50 p99 buckets populated
    liveness 9.05 ms 316.6 ms 0.005 … 0.5
    mesh_dns 183.4 ms 710.2 ms 0.025 … 1 (0% ≤ 10 ms, 1% ≤ 25 ms, 73% ≤ 250 ms, 97% ≤ 500 ms)

    Pre-fix both read 0/5 (everything in le=5). aether_agent_snapshot_duration_seconds now carries the 0.0001…5 le set (p99 436 ms). The rev206 roll itself was hitless (0 non-success on every tier). Old-pod series linger in a 10 m lookback and still read "2500 ms" (their le=5 bucket) — restrict to the new pods or wait for staleness when comparing.

    The histogram immediately surfaced something the flat buckets hid for months: the mesh_dns tier's median is 20× the liveness tier's while the resolver's server-side p50 is 1 ms — filed separately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions