VNI tooltip PromQL join breaks on transient duplicate series after Prometheus restart #50
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Weathermap panel's VNI-per-VTEP tooltip query (target D, from #44/#48) errors with:
Root cause: the RHS of the
group_leftjoin,interfaces_interface_arista_vxlan_vlan_to_vnis_vlan_to_vni_state_vni, is notaggregated before joining. Any time Prometheus restarts or a relabel rule
changes (most recently the
siterelabel added in #49), the pre-restartseries (old label set, frozen) and post-restart series (new label set)
briefly coexist within Prometheus's 5-minute staleness/lookback window —
both matching the same
(device, vlan)join key — which breaks theuniqueness requirement on the RHS. Confirmed transient: series count back to
1-per-(device,vlan) 5+ minutes after the restart, but the panel errors for
every user who loads it in that window.
Fix: wrap the RHS in
max by (device, vlan) (...)(or similar) so the joinkey is always unique regardless of transient duplicate label sets — this
protects against every future Prometheus restart/relabel change, not just
this one.
Only affects the decorative per-VTEP MAC-count tooltip, not node/link status
or traffic coloring.