Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
336 commits
Select commit Hold shift + click to select a range
25a86e0
n=10: enable stage with 3 matrix entries (shared/node-churn/upper-bou…
May 18, 2026
f7b16bc
n=10: drop max_parallel 3→2 so it fits Dv3 quota alongside n=5+n=20 (…
May 18, 2026
cf510ab
n=20: add n20_shared + n20_node_churn_combined matrix entries to mirr…
May 18, 2026
1829ce1
n=20: comment out n20_upper_bound (already validated in 67579)
May 18, 2026
80899ae
validate-cilium: Fleet detector demote all-concat to informational; w…
May 19, 2026
fc98daa
n=5: keep only n5_upper_bound (others already validated in 67593)
May 19, 2026
672dcf1
validate-cilium: fail-fast on Fleet skip-bug (cluster-id=0 after wait…
May 19, 2026
df54d53
shared-vnet support: derive clustermesh VNet from AKS subnet (not rol…
May 19, 2026
c8a7895
n=2 shared-VNet smoke: azure-2-shared.tfvars (1 VNet 10.0.0.0/8, 0 pe…
May 19, 2026
0329e65
n=2 shared-VNet smoke: test_type=pod-churn-combined-shared-vnet to is…
May 19, 2026
0c0677e
tfvars: add Microsoft.ContainerService/managedClusters delegation to …
May 19, 2026
08d1e5e
aks-cli: bump aks_wait_succeeded 20min->30min and nodepool retry 15mi…
May 20, 2026
76228cf
N=100 shared-VNet pod-churn-combined: azure-100.tfvars (1 VNet 10.0.0…
May 20, 2026
343028d
azure-100.tfvars: add Microsoft.ContainerService/managedClusters dele…
May 20, 2026
cf9290e
fleet: wrap clustermeshprofile apply in 5-attempt retry for N=100 LRO…
May 20, 2026
1ba615e
N=100: enable stage by default (quota verified live: 4992 free Dv3 vs…
May 20, 2026
fad744d
fleet: clustermeshprofile create is idempotent under preserve_state_o…
May 20, 2026
4beaafb
validate-cilium: skip VNet peering inventory in shared-VNet mode; fai…
May 20, 2026
ed9c1bd
execute-parallel: add per-worker watchdog timeout (CL2_WORKER_TIMEOUT…
May 20, 2026
d7daf3c
N=100 matrix: worker_timeout_seconds=14400 (4h ceiling, ~8x normal CL…
May 20, 2026
719659b
aks-cli: retry az aks create on ReferencedResourceNotProvisioned (sha…
May 20, 2026
5eb6e9d
N=100: drop parallelism 8->4; expand retry to VirtualNetworkNotInSucc…
May 20, 2026
ba35105
aks-cli: delete-before-retry on transient Azure RP errors (build 6778…
May 20, 2026
e09cace
aks-cli: idempotency precheck before az aks create + case-insensitive…
May 20, 2026
2b76994
diag: agent_specs_diag stage to dump VM specs (memory/vCPU/SKU via Az…
May 21, 2026
8cf8c6d
%global variation Phase 1 (smoke): annotate-namespaces.sh 3rd arg + C…
May 21, 2026
da6f368
enable n2_global_smoke stage for first trigger
May 21, 2026
d8469c5
%global matrix Phase 2: azure-20/50-shared.tfvars + N=20/50/100 sweep…
May 21, 2026
f333465
Option E (multi-scenario): event-throughput + isolation %global plumb…
May 21, 2026
045689b
enable N=20 %global sweep + disable smoke (validated by builds 67954+…
May 21, 2026
4970967
fix(tfvars): add required network_config_list attrs (network_security…
May 21, 2026
aef41c5
enable N=50 sweep + kubectl-top diagnostic per cluster + disable N=20…
May 21, 2026
66f62c7
n20 g20 retry: dedicated stage + enhanced Fleet diag (clustermeshprof…
May 22, 2026
e299264
kubectl-top to file (readability) + prep N=50 trigger
May 22, 2026
ce05238
N=50: set TF parallelism=4 (matches proven N=100 setting; parallelism…
May 22, 2026
d8b8bba
N=50 retry: 3 failed cells (g20/g60/g100) at max_parallel=2; g0 data …
May 22, 2026
85af318
N=50 g100 retry: solo cell attempt 3 (g20/g60 landed in 68079)
May 23, 2026
9996177
enable N=100 sweep + add cilium-status diag for CL2 failures
May 23, 2026
11fa4b3
add g60 hot-spot replicate stages (n=20/n=50/n=100, condition:false)
May 27, 2026
2dedd3b
g60 rerun stages: remove condition:false so they're selectable in UI
May 27, 2026
13d5e64
Add anomaly reruns: n20 g020, n20 g100, n50 g100
May 27, 2026
bf99b8c
aks-cli: aks_nodepool_cli precheck existing state + retry on "already…
skosuri1 May 28, 2026
716bf18
aks-cli fail-fast bricked nodepool + stuck cluster; Phase 1 metrics; …
skosuri1 Jun 2, 2026
6914bb6
n2 smoke: condition false -> always() so manual stage select works
skosuri1 Jun 2, 2026
4c1c54f
propagation probe + global services + outbound retry cap + cmp auto-r…
skosuri1 Jun 2, 2026
6c96dab
propagation probe: distroless-safe cilium exec + MCR-approved images …
skosuri1 Jun 2, 2026
ab1da2c
probe backend: explicit nginx command + tcpSocket readiness (cbl-mari…
skosuri1 Jun 3, 2026
2130ed4
probe defaults sized for N=100 safety (PEER_TIMEOUT 60->120, WINDOW 3…
skosuri1 Jun 3, 2026
fddd10b
next batch: L1 policy canary + mesh-recovery probe + canadacentral pr…
skosuri1 Jun 3, 2026
9b400a1
policy metric increase() over %v window + cc preflight PIP prefer-Sta…
skosuri1 Jun 3, 2026
b67a1b4
policy canary: L4 toPorts rule (force policy regen, was optimized awa…
skosuri1 Jun 3, 2026
da7511c
policy regen metric: keep query, document AKS-managed Cilium does not…
skosuri1 Jun 3, 2026
eb2711f
endpoint regen metric: increase(%v) + Mean/TotalSamples + comment cla…
skosuri1 Jun 3, 2026
020ffd0
cc migration: n=2 shared-vnet smoke (DSv4 SKU swap + canadacentral st…
skosuri1 Jun 3, 2026
606fdec
cc migration N=20+N=100: tfvars DSv4 swap + pipeline cells (cross-reg…
skosuri1 Jun 3, 2026
6b4c588
parallel next-batch: pod-density 500+800 n2 stages (euap, orthogonal …
Jun 3, 2026
aa90d3e
cluster-loss-recovery probe: mesh-detach-rejoin orchestrator + n=3 sm…
skosuri1 Jun 3, 2026
1838e67
detach probe: bump prewait 120->300s + pre-state deadline 60s->300s (…
skosuri1 Jun 4, 2026
de451ac
detach probe: cilium-dbg status (not clustermesh status) via ds/ciliu…
skosuri1 Jun 4, 2026
215c00e
final batch: long-soak 6h canary + repeatability-variance N=20 g100 x…
skosuri1 Jun 4, 2026
f1a77fd
cc N=100 fallback: azure_eastus2_n100_pod_churn (eastus2 has 143 clus…
skosuri1 Jun 4, 2026
8c226b2
centraluseuap N=100 stage (highest-capacity region; 187 AKS free + 74…
skosuri1 Jun 4, 2026
43cd066
revert centraluseuap N=100 (DSv4 only 7424 free = ~1.5x N=100 need, n…
Jun 4, 2026
493240e
pivot N=100 -> cc N=92 (eastus2 Dv3 SKU-policy-blocked; cc has 92 clu…
skosuri1 Jun 4, 2026
87f0041
drop N=100-in-alternate-region attempts; rely on euap N=100 baseline …
skosuri1 Jun 4, 2026
351e4f5
soak canary: worker_timeout 7h to 8h plus stage timeout 10h to 11h (b…
skosuri1 Jun 4, 2026
35ced14
metrics Phase 3 + NetworkPolicy at scale scenario (10 new Hubble/CRI/…
skosuri1 Jun 4, 2026
32367f8
cross-cluster CNP propagation cost probe: host-side parallel-apply or…
skosuri1 Jun 4, 2026
dcb5afb
propagation probe: add REMOVE + FIRST_PACKET extensions (stale-state …
skosuri1 Jun 4, 2026
90124bd
FIRST_PACKET probe fix: switch probe pod to nginx (HTTP server) when …
skosuri1 Jun 5, 2026
ff23224
soak canary: worker_timeout 8h to 9h plus stage timeout 11h to 12h (b…
skosuri1 Jun 5, 2026
780a944
replace dead Hubble queries with cilium_forward/drop datapath flow me…
skosuri1 Jun 6, 2026
def3fd8
mesh-behavior gap probes: identity GC in REMOVE + single-cluster fail…
Jun 9, 2026
be8994a
validation gate fixes: strip trailing whitespace in pipeline yaml + u…
Jun 12, 2026
05e32b3
fix pre-existing pylint regressions (too-many-lines disable on scale.…
Jun 12, 2026
e347feb
prometheus TSDB snapshot to blob (opt-in via cl2_prom_snapshot_enable…
Jun 12, 2026
34f41e3
switch prom snapshot delivery from Telescope blob to AzDO pipeline ar…
Jun 12, 2026
fa197c0
prom snapshot blob path: upload to cmshscaleprom in sub 37deca37 (our…
Jun 12, 2026
20bd804
fix prom snapshot blob upload: replace login.yml template + bash comb…
Jun 12, 2026
3ddd7a3
fill remaining metric + probe gaps: Phase 4 PromQL queries (Hubble fl…
Jun 16, 2026
491f6a4
fix gap #3 service-backend probe: create transient global Service on …
Jun 17, 2026
4cee8fd
refine Hubble flow query: slice forward/drop by standard verdict labe…
Jun 17, 2026
1433f34
enable prom snapshot (blob) on n2 global smoke: richest probe stage (…
Jun 18, 2026
a3f1116
enable prom snapshot on soak canary: pod-churn-combined gathers ciliu…
Jun 24, 2026
0ec395d
Add clustermesh-scale mock mode (KWOK + mock-cilium-agent topology)
Jun 25, 2026
9e28ea4
Add azure_mock_n2 stage for clustermesh-scale mock mode
Jun 25, 2026
c665bd6
Add n=2 MOCK smoke stage to new-pipeline-test (KWOK + mock-cilium-agent)
Jun 25, 2026
b40feab
Fix mock-mode CI checks (configure test arg, tfvars test-inputs, yaml…
Jun 25, 2026
b8d9f3f
mock-mode: disable CL2 kubelet scraping (kwok nodes have no kubelet)
Jun 25, 2026
962824d
test: use dict literal to satisfy pylint (use-dict-literal)
Jun 25, 2026
afd9d22
mock-mode: run pod-churn workload on kwok nodes, apply mock PodMonito…
Jun 25, 2026
8367099
Add n=20 mock provisioning spike stage (scales n=2 mock to 20 clusters)
Jun 25, 2026
2a4ba53
Add n=100 mock shared-VNet stage with parallel deploy + CL2 prometheu…
Jun 29, 2026
23627ab
Enable prometheus TSDB snapshots (blob) for all mock stages
Jun 29, 2026
6c5b30f
Improve validate node-readiness timeout diagnostics (cilium-agent log…
Jun 30, 2026
815f732
clustermesh-scale-mock: fail-fast preflight for missing mock ACR/image
Jun 30, 2026
10cd76f
clustermesh-scale n=100 mock: enable CMP auto-recovery (Fleet apiserv…
Jul 1, 2026
ab17321
clustermesh-scale: single-cluster 10k-node mock baseline (scale provi…
Jul 2, 2026
a647101
clustermesh-scale 10k baseline: scale churn x100 to match 72210 total…
Jul 2, 2026
a22c424
clustermesh-scale: allow single-cluster runs (configurable min cluste…
Jul 2, 2026
0e3463d
clustermesh-scale 10k: retry+throttle mock-agent apply (AKS pod webho…
Jul 2, 2026
42cf66b
clustermesh-scale 10k baseline: skip Fleet/ClusterMesh for single clu…
Jul 2, 2026
ea8f47a
clustermesh-scale mock: set providerID on KWOK nodes (stop AKS cloud-…
Jul 4, 2026
2e65e78
clustermesh-scale 10k baseline: 256Gi prompool + configurable/propaga…
Jul 5, 2026
8f99031
mock: keep agents off prometheus node so CL2 monitoring can schedule …
Jul 5, 2026
5f6e2b4
add single-cluster 1x5000 mock baseline (n1_mock_5k)
Jul 7, 2026
47fc6e4
provision: mesh-aware podCIDR scheme for >250 nodes/cluster (MOCK_MES…
Jul 7, 2026
b4c3397
add sharded mesh tiers 2x2500 + 5x1000 for consolidation comparison
Jul 7, 2026
b5e40c1
wire propagation-latency probe into 2x2500 + 5x1000 mesh tiers
Jul 8, 2026
9ac4105
harden mock deploy: retry early kubectl applies against transient api…
Jul 8, 2026
90289f2
fix comparison to 100% global density (drop inherited 20% from %globa…
Jul 8, 2026
38785f4
n100_mock: 100% global density (drop inherited 20% from %global exper…
Jul 8, 2026
7bfca6d
add propagation-latency probe to n100_mock (extreme-fan-out tier) + b…
Jul 8, 2026
5bb8daa
fix kwok-controller readiness starvation: dedicated APF priority for …
Jul 8, 2026
ba61ba8
convert n2/n5 mock tiers to shared-VNet (uniform topology w/ n100, dr…
Jul 9, 2026
f15461d
add clustermesh-scale testing report + mesh-metrics reference + compa…
Jul 9, 2026
db32efe
report: add per-scenario/per-tier object counts (ns/deploy/svc/pods/C…
Jul 9, 2026
11ab04a
report: repro section now downloads snapshots from cmshscaleprom stor…
Jul 9, 2026
4f152da
clustermesh-scale: add surgical batched member re-join recovery (CMP_…
Jul 10, 2026
e6df2e3
report §10.1: replace with standalone 100%-density 10k analysis (buil…
Jul 10, 2026
5c3473e
report §5: add exact stimulus counts per scenario (event-throughput 1…
Jul 10, 2026
7462f94
report §10.2: add measured propagation-latency numbers across setups …
Jul 10, 2026
fbba811
Add real-node kubelet scraping
Jul 13, 2026
8afded0
Add kubelet smoke stage
Jul 13, 2026
1461c77
Add full telemetry collection
Jul 14, 2026
24f557a
Add full telemetry smoke stage
Jul 14, 2026
1c19046
Add snapshot cluster identity
Jul 14, 2026
e016875
Use selected telemetry subscription
Jul 14, 2026
bfeef48
Fix exporter template
Jul 15, 2026
f82a411
Split managed telemetry collection
Jul 15, 2026
26689f1
Reduce TSDB export memory
Jul 15, 2026
ff434e8
Label snapshot blocks
Jul 15, 2026
4e6e2b6
Retry provider registration
Jul 15, 2026
614921a
Fix full telemetry gaps
Jul 15, 2026
d3dcab7
Guard managed reconstruction
Jul 15, 2026
d700dcf
Limit managed telemetry scope
Jul 16, 2026
75cf761
Fix AMW preflight parsing
Jul 16, 2026
a45f5a2
Use AMW drops for completeness
Jul 16, 2026
9ef9f5f
Tighten AMW preflight
Jul 16, 2026
b60832a
Scale telemetry collection
Jul 19, 2026
d9d9014
Prepare 100x100 telemetry
Jul 19, 2026
d4e88d1
Fix ACNS telemetry smoke
Jul 19, 2026
7da52a4
Retry package setup
Jul 20, 2026
d47b54d
Record scenario windows
Jul 20, 2026
9c4cb73
Add n100 node churn recovery
Jul 20, 2026
7b103d6
Fix telemetry smoke gaps
Jul 20, 2026
1ea7606
Fix ACNS DNS readiness
Jul 20, 2026
2475611
Prepare n100 lifecycle
Jul 20, 2026
4afc6a9
Harden scenario recovery
Jul 20, 2026
e39c832
Speed mock reconciliation
Jul 21, 2026
9fda84e
Rotate AMW workspaces
Jul 21, 2026
b4122e1
Retry AKS credentials
Jul 21, 2026
3f44dc3
Harden n100 launch
Jul 21, 2026
a2adcab
Serialize AKS nodepools
Jul 21, 2026
fc1f329
Harden Terraform teardown
Jul 21, 2026
771b349
Recover failed AKS applies
Jul 21, 2026
f265a11
Handle empty Terraform state
Jul 21, 2026
949cc9b
Wait for Fleet profile stability
Jul 22, 2026
eee04b9
Recover orphaned VNets
Jul 22, 2026
220e3f6
Recover stuck AKS operations
Jul 22, 2026
0587d8f
Recover late AKS deletions
Jul 22, 2026
3d2245f
Use shared VNet for n2
Jul 22, 2026
69077e1
Retry AKS regional capacity
Jul 22, 2026
36bcf62
Add Canada mock inputs
Jul 23, 2026
752d75d
Move scale runs to Canada
Jul 23, 2026
4229683
Harden mock reconciliation
Jul 23, 2026
90c975a
Fix scoped identity audit
Jul 23, 2026
0c43c76
Ignore controller-owned KWOK TTL
Jul 23, 2026
4750120
Fix telemetry finalization
Jul 24, 2026
be13d45
Inherit mock mode in mesh monitors
Jul 24, 2026
b04367a
Extend n2 resource lease
Jul 24, 2026
39d521e
Harden policy cleanup evidence
Jul 24, 2026
343838a
Harden pipeline timeouts
Jul 25, 2026
d3af7cd
Harden lifecycle evidence
Jul 25, 2026
21c1177
Fix telemetry races
Jul 25, 2026
5ab9b21
Fix final n2 blockers
Jul 26, 2026
7d9dc16
Shrink CL2 task payload
Jul 26, 2026
41e0328
Fix final telemetry gaps
Jul 26, 2026
35b2258
Harden n100 launch
Jul 27, 2026
dfcc285
Prepare Central EUAP gate
Jul 27, 2026
f0a3a94
Recover unavailable mesh API
Jul 27, 2026
2bd8f9d
Add candidate n2 gate
Jul 31, 2026
07400fe
Harden candidate telemetry
Aug 1, 2026
c3b0b82
Fix telemetry gates
Aug 1, 2026
61671a5
Make platform metrics optional
Aug 1, 2026
82dc76a
Guard Cilium policy
Aug 2, 2026
08f79f5
Stop on Cilium drift
Aug 2, 2026
d36ff32
Accept Cilium telemetry gap
Aug 2, 2026
560d0e6
Require policy for scale
Aug 2, 2026
9c68c8b
Align n100 telemetry gaps
Aug 2, 2026
3cacc76
Add East US 2 n100 stage
Aug 2, 2026
c5f24c4
Disable legacy n100 stage
Aug 2, 2026
816168a
Fix accepted gap ordering
Aug 2, 2026
c6bd145
Stage n100 Fleet enrollment
Aug 2, 2026
640f245
Bound Fleet teardown
Aug 2, 2026
55313b9
Fix staged join jq
Aug 3, 2026
7922e84
Tune staged Fleet enrollment
Aug 3, 2026
359803a
Retry failed Fleet members
Aug 3, 2026
726e6c0
Restore ten-member Fleet batches
Aug 4, 2026
6d8888b
Add reusable n100 lifecycle
Aug 4, 2026
c69bca7
Add East US 2 EUAP n100 stage
Aug 4, 2026
a7923c2
Compact blocked n100 stage
Aug 4, 2026
b57cff1
Simplify EUAP stage gate
Aug 4, 2026
ccfa64c
Retarget n100 persistence to EUAP
Aug 5, 2026
d6a7f50
Add n99 and reuse smoke
Aug 5, 2026
4d15ffa
Isolate staged kubeconfigs
Aug 5, 2026
d85eae6
Add n75 Fleet probe
Aug 5, 2026
8d3e679
Skip n75 workload
Aug 5, 2026
7e1a2dc
Add n90 Fleet probe
Aug 6, 2026
79a7c60
Capture Fleet member states
Aug 6, 2026
10baedb
Add comparable n99 probe
Aug 6, 2026
beba1a8
Gate AKS on network readiness
Aug 7, 2026
ac941c9
Harden AKS retry recovery
Aug 7, 2026
6621d4a
Bound Fleet recovery applies
Aug 7, 2026
7667c36
Harden cancellation cleanup
Aug 7, 2026
4948549
Generalize scale reuse lifecycle
Aug 7, 2026
77e95f5
Add lifecycle queue parameters
Aug 7, 2026
33f7ce9
Fix lifecycle mode parameter
Aug 7, 2026
f353fe7
Pin lifecycle subscription
Aug 7, 2026
a6c412e
Wait for stable n2 AKS
Aug 7, 2026
130751f
Pin all n2 lifecycle stages
Aug 7, 2026
98d2eaa
Carry lifecycle desired-state SHA
Aug 7, 2026
8e248b5
Avoid n2 resume reapply reset
Aug 7, 2026
bdfdf58
Clean cluster overlay on reset
Aug 7, 2026
134ff09
Remove stale Fleet root CA
Aug 7, 2026
1801988
Reload certs during n2 resume
Aug 7, 2026
140e222
Fix n2 cert readiness check
Aug 7, 2026
4506c87
Add existing Fleet resume smoke
Aug 7, 2026
b31488c
Fix existing Fleet ID check
Aug 7, 2026
5cf0e05
Handle asynchronous n2 Fleet apply
Aug 7, 2026
d3c79b3
Test workloads after persistence
Aug 7, 2026
97b1193
Recheck AKS before Fleet join
Aug 7, 2026
8b35e87
Make n2 readiness probe tolerant
Aug 7, 2026
df174d4
Enable n99 Fleet rejoin
Aug 11, 2026
dbae1dc
Preserve staged recovery budget
Aug 11, 2026
7313e73
Protect preserved scale lease
Aug 11, 2026
2b41035
Stream Fleet reset inventory
Aug 11, 2026
0391336
Extend n100 preserve lease
Aug 12, 2026
23b28e8
Add existing Fleet repair resume
Aug 13, 2026
25e50bb
Retry apt lock contention
Aug 13, 2026
1600e82
Pass preserved resume target
Aug 13, 2026
e20d41c
Preserve explicit run id
Aug 13, 2026
001736d
Use supported n100 telemetry limits
Aug 13, 2026
05835f9
Retry telemetry manifest apply
Aug 13, 2026
03f721a
Rebalance n100 telemetry shards
Aug 13, 2026
d3dd9f6
Trim telemetry preflight YAML
Aug 13, 2026
bebdfbb
Fix n100 telemetry reassignment
Aug 14, 2026
c2afed1
Harden n100 scenario recovery
Aug 14, 2026
0e3c0d2
Grace n100 node readiness
Aug 14, 2026
85d598b
Bound n100 Cilium validation
Aug 14, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
200 changes: 200 additions & 0 deletions docs/MESH-METRICS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,200 @@
# ClusterMesh-scale snapshot metrics — reference

Explanations for the **mesh** metrics found in the local Prometheus snapshots
(`~/prom-snapshots/consolidated`, served at http://localhost:19000).

- **Cilium version in these snapshots:** `1.18.11` (from `cilium_kvstoremesh_version`).
- **Why Grafana's Metrics Explorer shows no descriptions:** this Prometheus serves
imported TSDB blocks only — it never scraped live targets, so the metric
metadata (HELP/TYPE) API is empty and Grafana has nothing to display on hover.
**This is now fixed** for the metrics below: `mesh-metadata-exporter.py`
(scraped as job `mesh-metadata`, port :19100) publishes their HELP/TYPE so the
descriptions appear in Grafana. Its samples are zero-valued, tagged
`snapshot_meta="1"`, and land at "now" — exclude them anywhere with
`{snapshot_meta=""}` if needed. Started automatically by `start-all.sh`.

## How to look up any metric
1. **Cilium official reference** — https://docs.cilium.io/en/stable/observability/metrics/
(sections *ClusterMesh* and *kvstoremesh*). Source of the HELP strings below.
2. **This repo's measurement configs** (best-commented, explains *why* each matters
for scale) —
`~/clustermesh-scale/telescope-upstream/modules/python/clusterloader2/clustermesh-scale/config/modules/measurements/`
→ `clustermesh-metrics.yaml`, `clustermesh-throughput.yaml`, `cilium.yaml`, `control-plane.yaml`.
3. **Naming convention** — `cilium_<subsystem>_<what>_<unit>`.
Suffix `_total` = counter, `_bucket`/`_count`/`_sum` = histogram, otherwise gauge.

## Labels you'll see everywhere (added by the pipeline / Cilium)
- `snapshot_cluster` — the cluster whose Prometheus snapshot contained the
sample (baked into native blocks so snapshots coexist safely).
- `source_cluster` — a metric-native Cilium label identifying the source
cluster for that specific observation; it is never overwritten by snapshot
relabeling.
- `target_cluster` — the **remote** peer a per-remote metric refers to.
- `scope` — kvstore data kind: `identities/v1`, `ip/v1` (endpoints), `services/v1`,
`nodes/v1`, `serviceexports/v1`, plus internal (`cilium/.heartbeat`, `lease`, …).
- `job=cilium` (port `:9962`) = the **cilium-agent**; `job=monitoring/clustermesh-apiserver-*`
(port `:9964`) = the **clustermesh-apiserver / kvstoremesh** sidecar.

---

## ClusterMesh — agent's view of remote clusters (`job=cilium`, :9962)
| Metric | Type | Key labels | Meaning |
|---|---|---|---|
| `cilium_clustermesh_global_services` | gauge | `source_cluster` | Number of global (multi-cluster) services the agent knows about. |
| `cilium_clustermesh_remote_clusters` | gauge | `source_cluster` | Number of remote clusters meshed with the local cluster. |
| `cilium_clustermesh_remote_cluster_nodes` | gauge | `source_cluster`,`target_cluster` | Number of nodes seen in each remote cluster. |
| `cilium_clustermesh_remote_cluster_readiness_status` | gauge | `target_cluster` | Readiness of the remote-cluster connection (1 ready / 0 not). |
| `cilium_clustermesh_remote_cluster_failures` | gauge | `target_cluster` | Total failures related to the remote cluster. |
| `cilium_clustermesh_remote_cluster_last_failure_ts` | gauge | `target_cluster` | Unix timestamp of the last failure of the remote cluster. |

## kvstoremesh — the propagation engine (`job=monitoring/clustermesh-apiserver-*`, :9964)
kvstoremesh mirrors each remote cluster's kvstore locally; these metrics are the
**cross-cluster propagation cost** signals.

### Remote-cluster state (same shape as above, from kvstoremesh's side)
| Metric | Type | Key labels | Meaning |
|---|---|---|---|
| `cilium_kvstoremesh_remote_clusters` | gauge | `source_cluster` | Remote clusters meshed, as seen by kvstoremesh. |
| `cilium_kvstoremesh_remote_cluster_readiness_status` | gauge | `target_cluster` | Readiness of each remote cluster (1/0). |
| `cilium_kvstoremesh_remote_cluster_failures` | gauge | `target_cluster` | Failures related to the remote cluster. |
| `cilium_kvstoremesh_remote_cluster_last_failure_ts` | gauge | `target_cluster` | Timestamp of the last remote-cluster failure. |

### Event & operation throughput / latency ← the headline propagation metrics
| Metric | Type | Key labels | Meaning |
|---|---|---|---|
| `cilium_kvstoremesh_kvstore_events_queue_seconds_{count,sum,bucket}` | histogram | `scope`,`action` | Per-scope cross-cluster **event throughput** (`_count` rate = events/s) and time each event waited in the queue. The core propagation signal. |
| `cilium_kvstoremesh_kvstore_operations_duration_seconds_{count,sum,bucket}` | histogram | `scope`,`kind`,`action`,`outcome` | Latency of kvstore (etcd) operations — read/write/lease etc. Propagation op latency. |
| `cilium_kvstoremesh_kvstore_sync_queue_size` | gauge | `scope`,`source_cluster` | Elements queued waiting to sync — a **backlog** gauge; growing = saturation. |
| `cilium_kvstoremesh_kvstore_sync_errors_total` | counter | `scope`,`source_cluster` | Times a kvstore sync failed. |
| `cilium_kvstoremesh_kvstore_quorum_errors_total` | counter | `error` | etcd quorum errors. |
| `cilium_kvstoremesh_kvstore_initial_sync_completed` | gauge | `scope`,`source_cluster`,`action` | 1 once the initial full sync from/to the kvstore completed for that scope/cluster. |

### Startup / housekeeping
| Metric | Type | Key labels | Meaning |
|---|---|---|---|
| `cilium_kvstoremesh_bootstrap_seconds` | gauge | — | Duration to complete kvstoremesh bootstrap. |
| `cilium_kvstoremesh_controllers_group_runs_total` | counter | `group_name`,`status` | How many times each controller (reconcile) group ran, by success/fail. |
| `cilium_kvstoremesh_version` | gauge (=1) | `version`,`revision`,`arch` | Build info; value is 1, version is in the label (`1.18.11`). |

### API rate limiter (kvstoremesh → etcd)
| Metric | Type | Key labels | Meaning |
|---|---|---|---|
| `cilium_kvstoremesh_api_limiter_processed_requests_total` | counter | `api_call`,`outcome`,`return_code` | Total API/etcd requests processed. |
| `cilium_kvstoremesh_api_limiter_processing_duration_seconds` | gauge | `api_call`,`value` | Mean/estimated processing duration. |
| `cilium_kvstoremesh_api_limiter_wait_duration_seconds` | gauge | `api_call`,`value` | Time requests waited (throttled) before running. |
| `cilium_kvstoremesh_api_limiter_rate_limit` | gauge | `api_call`,`value` | Current rate-limit config (limit / burst). |
| `cilium_kvstoremesh_api_limiter_requests_in_flight` | gauge | `api_call`,`value` | Concurrent in-flight requests. |

### StateDB (Cilium's internal in-memory DB backing kvstoremesh)
| Metric | Type | Key labels | Meaning |
|---|---|---|---|
| `cilium_kvstoremesh_statedb_table_objects` | gauge | `table` | Number of objects in a StateDB table. |
| `cilium_kvstoremesh_statedb_table_graveyard_objects` | gauge | `table` | Deleted objects awaiting garbage collection. |
| `cilium_kvstoremesh_statedb_table_revision` | gauge | `table` | Current revision number of the table. |
| `cilium_kvstoremesh_statedb_table_contention_seconds_{count,sum,bucket}` | histogram | `table` | Time spent waiting on table locks (contention). |
| `cilium_kvstoremesh_statedb_write_txn_duration_seconds_{count,sum,bucket}` | histogram | `handle` | Duration of StateDB write transactions (by writer handle). |

## Feature flag
| Metric | Type | Meaning |
|---|---|---|
| `cilium_feature_adv_connect_and_lb_clustermesh_enabled` | gauge (0/1) | 1 when the ClusterMesh connectivity+LB feature is enabled. |

---

## Sample query per metric
One representative PromQL per metric (run in a snapshot window — see bottom).
A few return empty in a healthy window (no failures / all-ready); that's expected
and noted inline.

### ClusterMesh — agent (`job=cilium`, :9962)
```promql
max by (source_cluster) (cilium_clustermesh_global_services) # global services per cluster
max by (source_cluster) (cilium_clustermesh_remote_clusters) # peers per cluster (mesh fan-out)
sum by (source_cluster) (cilium_clustermesh_remote_cluster_nodes) # remote nodes seen per cluster
min by (source_cluster) (cilium_clustermesh_remote_cluster_readiness_status) # 1 = all peers ready
max by (target_cluster) (cilium_clustermesh_remote_cluster_failures) # failures per remote peer
max by (source_cluster, target_cluster) (cilium_clustermesh_remote_cluster_last_failure_ts) # unix ts of last failure
```

### kvstoremesh — remote-cluster state (`job=…clustermesh-apiserver…`, :9964)
```promql
max by (source_cluster) (cilium_kvstoremesh_remote_clusters) # peers per cluster (kvstoremesh side)
min by (source_cluster) (cilium_kvstoremesh_remote_cluster_readiness_status) # 1 = all remote links ready
max by (target_cluster) (cilium_kvstoremesh_remote_cluster_failures) # failures per remote peer
max by (source_cluster, target_cluster) (cilium_kvstoremesh_remote_cluster_last_failure_ts) # unix ts of last failure
```

### kvstoremesh — event/operation throughput & latency (the propagation signals)
```promql
sum by (scope) (rate(cilium_kvstoremesh_kvstore_events_queue_seconds_count[5m])) # cross-cluster event throughput (ev/s) by scope
histogram_quantile(0.99, sum by (le, scope) (rate(cilium_kvstoremesh_kvstore_events_queue_seconds_bucket[5m]))) # event queue-wait p99 by scope
histogram_quantile(0.99, sum by (le, action) (rate(cilium_kvstoremesh_kvstore_operations_duration_seconds_bucket[5m]))) # kvstore op latency p99 by action
max by (scope) (cilium_kvstoremesh_kvstore_sync_queue_size) # sync backlog by scope
sum(rate(cilium_kvstoremesh_kvstore_sync_errors_total[5m])) # sync error rate (0 when healthy)
sum(rate(cilium_kvstoremesh_kvstore_quorum_errors_total[10m])) # etcd quorum errors (empty/0 when healthy)
min by (source_cluster) (cilium_kvstoremesh_kvstore_initial_sync_completed) # 1 = initial sync done for all scopes
```

### kvstoremesh — startup / housekeeping
```promql
max(cilium_kvstoremesh_bootstrap_seconds) # bootstrap duration (s)
sum by (group_name) (rate(cilium_kvstoremesh_controllers_group_runs_total{status="failure"}[5m])) # failing reconciles/s (empty when none fail)
count by (version) (cilium_kvstoremesh_version) # which Cilium build (1.18.11)
```

### kvstoremesh — API rate limiter (→ etcd)
```promql
sum by (api_call, outcome) (rate(cilium_kvstoremesh_api_limiter_processed_requests_total[5m])) # processed request rate by outcome
max by (api_call) (cilium_kvstoremesh_api_limiter_processing_duration_seconds{value="mean"}) # mean processing time (value: mean|estimated)
max by (api_call) (cilium_kvstoremesh_api_limiter_wait_duration_seconds{value="mean"}) # mean throttle wait (value: min|mean|max)
max by (api_call) (cilium_kvstoremesh_api_limiter_rate_limit{value="limit"}) # current limit (value: limit|burst)
max by (api_call) (cilium_kvstoremesh_api_limiter_requests_in_flight{value="in-flight"}) # in-flight requests (value: in-flight|limit)
```

### kvstoremesh — StateDB (internal in-memory DB)
```promql
sum by (table) (cilium_kvstoremesh_statedb_table_objects) # objects per table
sum by (table) (cilium_kvstoremesh_statedb_table_graveyard_objects) # deleted-pending-GC per table
max by (table) (cilium_kvstoremesh_statedb_table_revision) # current table revision
histogram_quantile(0.99, sum by (le, table) (rate(cilium_kvstoremesh_statedb_table_contention_seconds_bucket[5m]))) # table lock contention p99
histogram_quantile(0.99, sum by (le, handle) (rate(cilium_kvstoremesh_statedb_write_txn_duration_seconds_bucket[5m]))) # write-txn duration p99 by handle
```

### Feature flag
```promql
max by (source_cluster) (cilium_feature_adv_connect_and_lb_clustermesh_enabled) # 1 = clustermesh feature enabled
```

---

## Documented in Cilium 1.18 but **NOT present** in these snapshots
(You pasted these from the docs; they don't appear in this data — either not emitted
by this build/config, or zero-valued and never scraped.)
- `cilium_clustermesh_remote_cluster_services` (per-remote service count; here only the aggregate `global_services` is present)
- `cilium_clustermesh_remote_cluster_endpoints`
- `cilium_clustermesh_remote_cluster_service_exports` (MCS-API)
- `cilium_clustermesh_remote_cluster_cache_revocations`
- `cilium_kvstoremesh_leader_election_master_status`

## Handy PromQL (from the pipeline's own measurements)
```promql
# Clusters reporting at an instant
count(count by (source_cluster) (cilium_clustermesh_global_services))

# Cross-cluster event throughput by scope (events/s)
sum by (scope) (rate(cilium_kvstoremesh_kvstore_events_queue_seconds_count[5m]))

# kvstore operation latency p50/p99 (propagation cost)
histogram_quantile(0.99, sum(rate(cilium_kvstoremesh_kvstore_operations_duration_seconds_bucket[5m])) by (le))

# Saturation: event backlog rate (sustained positive = draining slower than arriving)
sum(rate(cilium_kvstoremesh_kvstore_events_queue_seconds_count[1m]))
- sum(rate(cilium_kvstoremesh_kvstore_sync_errors_total[1m]))

# Mesh fan-out: remote clusters per reporting cluster
sum by (source_cluster) (cilium_kvstoremesh_remote_clusters)
```

## Snapshot query windows (data is historical)
- propagation-probe run: `2026-06-18T01:05Z → 01:37Z`
- pod-churn n=100 run: `2026-07-01T20:37Z → 2026-07-02T00:43Z`
Loading
Loading