At first glance this competency sounds like management slides, but it turns into very concrete exam work: "write a query showing deployment frequency" is completely gradable. The key is knowing which real cluster metrics map to which delivery and platform indicators.
make core obsOrientation
In practice, measuring platform efficiency means wiring your delivery controllers into Prometheus and querying the signals they already emit. Getting the scrape hooked up is half the job; the PromQL itself is just a few lines.
Delivery performance (the DORA metrics) tells you how smoothly code reaches production. Platform effectiveness (fulfillment latency, adoption, time to first change, developer satisfaction) tells you how well the platform actually serves its users. A platform can deploy fast and still feel painful to use, and vice versa, which is why the CNCF Platforms white paper tracks both.
The indicators worth knowing cold
| Indicator | Definition | Where the data lives |
|---|---|---|
| Deployment frequency | how often changes ship to production | CD sync counters or git tags |
| Lead time for changes | commit → live in production | git commit timestamp vs. CD deploy timestamp |
| Change failure rate | percentage of releases causing degradation | failed syncs, aborted rollouts, incident links |
| Time to restore service | incident start → full recovery | alerting history (firing → resolved) or incident logs |
| Fulfillment latency | capability request → ready to use | your own CR timestamps (creationTimestamp → Ready) |
| Adoption / time to first contribution | who uses the platform, and how fast new devs ship | outside the cluster: portal catalog data and surveys |
In an Argo CD shop, the controller already holds your delivery metrics
argocd_app_sync_total: per-app counter labeled byphase(Succeeded,Failed,Error); gives you deployment frequency and change failure rate directly.argocd_app_info: one series per Application carrying currentsync_statusandhealth_statuslabels, perfect for "how many apps are degraded right now?"argocd_app_reconcile(histogram): controller loop duration, measuring platform health rather than app delivery.
Argo CD already exports all three, but Prometheus doesn't scrape them until you drop in a ServiceMonitor, which is exactly how the exercises begin.
The other half: does the platform keep what it shipped running?
Pair delivery speed with runtime stability: restart counts (kube_pod_container_status_restarts_total), unavailable replicas (kube_deployment_status_replicas_unavailable), Pending pods, and the request-vs-usage efficiency gap from section 1.5. Delivery metrics prove you ship fast; runtime metrics prove what you ship actually holds up.
Counting Argo CD syncs as deployment frequency is a rough proxy: a self-heal sync on an unchanged app isn't a new release, and one commit fanning out across ten apps isn't ten independent releases. Call out that caveat clearly and mention what makes it exact (counting distinct Git revisions or emitting explicit deploy events from CI).
Modern DORA definitions and SPACE
DORA updated its metric names and groupings in 2024, so don't get tripped up when a prompt mentions "failed deployment recovery time" or "deployment rework rate":
| Group | Metric (2024 name) | Older name | Definition |
|---|---|---|---|
| Throughput | Change lead time | Lead time for changes | commit to running in production |
| Throughput | Deployment frequency | same | how often you deploy to production |
| Throughput | Failed deployment recovery time | Time to restore service / MTTR | recovery time after a bad deployment (distinct from general infrastructure outages) |
| Stability | Change failure rate | same | share of deployments requiring remediation |
| Stability | Deployment rework rate (added 2024) | none | share of deployments that are unplanned hotfixes for user-facing bugs |
Operational reliability sits beside these rather than acting as a "fifth key." For reference, the 2024 report's clusters were: Elite (on-demand deploys, lead time < 1 day, recovery < 1 hour, ~5% CFR), High (daily–weekly, 1 day–1 week, < 1 day, ~20%), Medium (weekly–monthly, 1 week–1 month, < 1 day, ~10%), and Low (monthly–biannual, 1–6 months, 1 week–1 month, ~40%). Note that the 2025 DORA report retired those four tiers in favor of team archetypes factoring in burnout and friction, so cite them as the 2024 clusters rather than fixed law.
Pulling each DORA metric out of a Kubernetes cluster
- Deployment frequency:
increase(argocd_app_sync_total{phase="Succeeded"}[7d])per app; for Flux, count changes in therevisionlabel ongotk_resource_info{customresource_kind="Kustomization"}; for Tekton,increase(tekton_pipelines_controller_pipelinerun_total{status="success"}[7d])on your deploy pipeline. - Change lead time: requires joining two timestamps: the Git commit time (
git log --format=%cI <sha>) and the deploy timestamp (fromargocd app historyor Flux Kustomization'sstatus.lastAppliedRevision/ conditionlastTransitionTime). Because no single exporter owns both, a tiny pipeline step or controller usually joins them and emits a gauge. - Change failure rate: failed syncs (
phase=~"Failed|Error") plus rollbacks and aborted progressive rollouts (rollout_phase{phase="Degraded"}in Argo Rollouts, or Flagger'sflagger_canary_statusfailures) divided by total deploys. - Failed deployment recovery time: time from a deploy-triggered alert firing (
ALERTS{alertstate="firing"}) to resolving, or from a broken sync to the next green sync (alongside MTTD, MTTA, and MTTR from your incident tooling). - Rework rate: relies on tagging unplanned hotfixes consistently (a commit trailer, PR label, or
reason=hotfixannotation) so you can count them cleanly.
SPACE (why the white paper cites it)
When measuring developer productivity, the white paper points to SPACE: Satisfaction and well-being, Performance (outcomes, not raw output), Activity, Communication and collaboration, and Efficiency and flow. Its core rule: always combine metrics from at least three dimensions, including at least one perceptual measure like a developer survey. Judging teams by lines of code alone is pure Activity, which is exactly what SPACE warns against.
Measuring the platform itself
The CNCF Platforms white paper organizes platform success into three buckets. Know these exact terms, because scenario marking keys look for them:
| Group | Measures named | Where the data lives |
|---|---|---|
| User satisfaction and productivity | active users and retention (capabilities provisioned, growth/churn), NPS or developer surveys, SPACE metrics | portal analytics, service catalog, surveys |
| Organizational efficiency | request-to-fulfillment latency for a capability, time to build and deploy a brand-new service to prod, time for a new engineer to ship their first change | CR timestamps (creation → Ready), scaffolder runs to first green sync, onboarding logs |
| Product and feature delivery | the DORA four: deployment frequency, lead time, time to restore, change failure rate | CD and alerting systems |
In the Platform Engineering Maturity Model, the Measurement track climbs from Ad hoc → Consistent collection → Insights → Quantitative and qualitative. Putting up a dashboard is Level 2; noticing request-to-Ready p95 is 20 minutes and cutting it to 2 minutes is Level 3.
Concrete platform KPIs you can compute right now
- Adoption: count Crossplane XRs or kro instances per team (
count by (customresource_kind) (kube_customresource_info)via kube-state-metricsCustomResourceStateMetrics), and compare platform-stamped namespaces against hand-rolled ones. - Golden path usage: compare Applications spawned by your ApplicationSet against manually created Applications, or track weekly Backstage scaffolder runs.
- Request-to-fulfillment latency: subtract
creationTimestampfrom theReadycondition'slastTransitionTime(viaCustomResourceStateMetricsor Crossplane's built-incrossplane_managed_resource_first_time_to_readiness_secondshistogram). - Ticket volume: track manual platform requests that self-service should be absorbing; watch this curve trend down.
- Platform reliability: set real SLIs and SLOs for your own control plane (API server 5xx ratio, Argo CD sync success rate, webhook admission latency (
apiserver_admission_webhook_admission_duration_seconds), and Crossplane/kro reconcile errors (controller_runtime_reconcile_total{result="error"})), guarded by the exact same multi-window burn-rate alerts from section 4.2.
Expect two flavors of question: hands-on ("write a PromQL query for deployment frequency, failed syncs, or unhealthy apps" after scraping the tool), and architectural ("which indicators prove your platform improved developer experience?": cite fulfillment latency, time to first change, adoption, and surveys alongside DORA, and explain why raw output counts like lines of code don't work).
Exercises
Discover what Argo CD exposes, then monitor it:
kubectl -n argocd get svc | grep metricsoutputcaptured 2026-08-26
$ kubectl -n argocd get svc | grep metrics
argocd-application-controller-metrics ClusterIP 10.96.8.45 <none> 8082/TCP 75m
argocd-repo-server-metrics ClusterIP 10.96.30.75 <none> 8084/TCP 75m
argocd-server-metrics ClusterIP 10.96.170.16 <none> 8083/TCP 75mThree metrics services (application controller, server, repo server). The lab's gitops layer enables them. If the grep comes back empty on an older install, the fix is helm -n argocd upgrade argocd argo/argo-cd --reuse-values --set controller.metrics.enabled=true --set server.metrics.enabled=true --set repoServer.metrics.enabled=true, itself a fair exam task. Write one ServiceMonitor per service you care about; the controller's is the one with sync metrics:
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: argocd-controller
namespace: monitoring
labels: { release: prometheus }
spec:
namespaceSelector: { matchNames: [argocd] }
selector: { matchLabels: { app.kubernetes.io/name: argocd-metrics } }
endpoints: [{ port: http-metrics }]That endpoint port is http-metrics because that is what the Service names it, not because anyone would guess it. kubectl -n argocd get svc argocd-application-controller-metrics -o jsonpath='{.spec.ports[*].name}' is the thirty-second check that saves an hour of "why is there no target".
argocd_app_info returns rows in the Prometheus UI within a couple of minutes. Everything from 4.1 about selectors and port names applies; this exercise is deliberately a rerun of those skills against an unfamiliar target.With sync activity from your 2.2/2.6 work in the counters (trigger a couple of argocd app sync demo-staging runs if the range is empty):
sum(increase(argocd_app_sync_total{phase="Succeeded"}[24h]))
sum(increase(argocd_app_sync_total{phase=~"Failed|Error"}[24h]))
/ sum(increase(argocd_app_sync_total[24h]))
count(argocd_app_info{health_status!="Healthy"}) or vector(0)outputcaptured 2026-08-26
$ kubectl -n monitoring port-forward svc/prometheus-operated 9090 & # or open the UI from make urls
$ curl -sG http://localhost:9090/api/v1/query --data-urlencode \
'query=sum(increase(argocd_app_sync_total{phase="Succeeded"}[24h]))' | jq -r '.data.result[0].value[1]'
3.0247315789473683
$ curl -sG http://localhost:9090/api/v1/query --data-urlencode \
'query=sum(increase(argocd_app_sync_total{phase=~"Failed|Error"}[24h])) / sum(increase(argocd_app_sync_total[24h]))' \
| jq -r '.data.result[0].value[1] // "no failed syncs in the window"'
no failed syncs in the window
$ curl -sG http://localhost:9090/api/v1/query --data-urlencode \
'query=count(argocd_app_info{health_status!="Healthy"}) or vector(0)' | jq -r '.data.result[0].value[1]'
0Deployment frequency, change failure rate, and currently-degraded apps (a time-to-restore ingredient). Then push one bad image tag (the 2.6 drill), sync, revert, and watch the failure rate query move.
argocd app history demo-staging.Measure the white paper's "request to fulfillment" for the lab's own self-service path: apply a fresh AppEnvironment XR (section 3.5) and time from apply to Ready condition using its lastTransitionTime:
kubectl get appenvironment <name> -o jsonpath='{.status.conditions[?(@.type=="Ready")].lastTransitionTime}'outputcaptured 2026-08-26
$ kubectl get appenvironment team-c-dev -o jsonpath='{.status.conditions[?(@.type=="Ready")].lastTransitionTime}{"\n"}'
2026-08-27T01:53:06Z
$ kubectl get appenvironment team-c-dev -o jsonpath='{.metadata.creationTimestamp}{"\n"}'
2026-08-27T01:52:58Zagainst the object's metadata.creationTimestamp.
The bridge to 4.2: a PrometheusRule that fires when any app stays non-Healthy for 10 minutes (count(argocd_app_info{health_status!="Healthy"}) > 0, for: 10m). Verify with the bad-image trick, then clean up.
kube-state-metrics can expose your CRDs the same way it exposes Deployments, from a config file. That turns "is every tenant environment ready" into a query instead of a script.
cat > /tmp/crs.yaml <<'EOF'
spec:
resources:
- groupVersionKind:
group: platform.lab.local
version: v1alpha1
kind: AppEnvironment
metricNamePrefix: kube_customresource_appenvironment
labelsFromPath:
name: [metadata, name]
namespace: [metadata, namespace]
metrics:
- name: condition
help: "AppEnvironment status conditions"
each:
type: StateSet
stateSet:
labelName: status
# without the condition type every condition collapses onto one label set
labelsFromPath:
type: [type]
path: [status, conditions]
valueFrom: [status]
list: ["True", "False", "Unknown"]
EOF
kubectl -n monitoring create configmap ksm-customresource --from-file=config.yaml=/tmp/crs.yaml --dry-run=client -o yaml | kubectl -n monitoring apply -f -
# kube-state-metrics needs to read the CRD as well as the custom resource itself
kubectl create clusterrole ksm-appenv --verb=get,list,watch --resource=appenvironments.platform.lab.local,customresourcedefinitions.apiextensions.k8s.io --dry-run=client -o yaml | kubectl apply -f -
kubectl create clusterrolebinding ksm-appenv --clusterrole=ksm-appenv --serviceaccount=monitoring:prometheus-kube-state-metrics --dry-run=client -o yaml | kubectl apply -f -
# the deployment ships with no volumes at all, so these paths are created, not appended to
kubectl -n monitoring patch deploy prometheus-kube-state-metrics --type json -p '[{"op":"add","path":"/spec/template/spec/volumes","value":[{"name":"crs","configMap":{"name":"ksm-customresource"}}]},{"op":"add","path":"/spec/template/spec/containers/0/volumeMounts","value":[{"name":"crs","mountPath":"/etc/ksm"}]},{"op":"add","path":"/spec/template/spec/containers/0/args/-","value":"--custom-resource-state-config-file=/etc/ksm/config.yaml"}]'
kubectl -n monitoring rollout status deploy prometheus-kube-state-metrics --timeout=180s
sleep 60
kubectl -n monitoring port-forward svc/prometheus-kube-prometheus-prometheus 9090:9090 & PF1=$!
sleep 5
curl -sG localhost:9090/api/v1/query --data-urlencode 'query=kube_customresource_appenvironment_condition' | jq -r '.data.result[] | "\(.metric.name) \(.metric.type)=\(.metric.status) \(.value[1])"'
kill $PF1
kubectl -n monitoring patch deploy prometheus-kube-state-metrics --type json -p '[{"op":"remove","path":"/spec/template/spec/volumes"},{"op":"remove","path":"/spec/template/spec/containers/0/volumeMounts"},{"op":"remove","path":"/spec/template/spec/containers/0/args/2"}]'
kubectl delete clusterrolebinding ksm-appenv
kubectl delete clusterrole ksm-appenv
kubectl -n monitoring delete cm ksm-customresourceoutputcaptured 2026-09-12
$ cat > /tmp/crs.yaml <<'EOF'
spec:
resources:
- groupVersionKind:
group: platform.lab.local
version: v1alpha1
kind: AppEnvironment
metricNamePrefix: kube_customresource_appenvironment
labelsFromPath:
name: [metadata, name]
namespace: [metadata, namespace]
metrics:
- name: condition
help: "AppEnvironment status conditions"
each:
type: StateSet
stateSet:
labelName: status
# without the condition type every condition collapses onto one label set
labelsFromPath:
type: [type]
path: [status, conditions]
valueFrom: [status]
list: ["True", "False", "Unknown"]
EOF
$ kubectl -n monitoring create configmap ksm-customresource --from-file=config.yaml=/tmp/crs.yaml --dry-run=client -o yaml | kubectl -n monitoring apply -f -
configmap/ksm-customresource created
$ # kube-state-metrics needs to read the CRD as well as the custom resource itself
$ kubectl create clusterrole ksm-appenv --verb=get,list,watch --resource=appenvironments.platform.lab.local,customresourcedefinitions.apiextensions.k8s.io --dry-run=client -o yaml | kubectl apply -f -
clusterrole.rbac.authorization.k8s.io/ksm-appenv created
$ kubectl create clusterrolebinding ksm-appenv --clusterrole=ksm-appenv --serviceaccount=monitoring:prometheus-kube-state-metrics --dry-run=client -o yaml | kubectl apply -f -
clusterrolebinding.rbac.authorization.k8s.io/ksm-appenv created
$ # the deployment ships with no volumes at all, so these paths are created, not appended to
$ kubectl -n monitoring patch deploy prometheus-kube-state-metrics --type json -p '[{"op":"add","path":"/spec/template/spec/volumes","value":[{"name":"crs","configMap":{"name":"ksm-customresource"}}]},{"op":"add","path":"/spec/template/spec/containers/0/volumeMounts","value":[{"name":"crs","mountPath":"/etc/ksm"}]},{"op":"add","path":"/spec/template/spec/containers/0/args/-","value":"--custom-resource-state-config-file=/etc/ksm/config.yaml"}]'
deployment.apps/prometheus-kube-state-metrics patched
$ kubectl -n monitoring rollout status deploy prometheus-kube-state-metrics --timeout=180s
Waiting for deployment spec update to be observed...
Waiting for deployment spec update to be observed...
Waiting for deployment "prometheus-kube-state-metrics" rollout to finish: 0 out of 1 new replicas have been updated...
Waiting for deployment "prometheus-kube-state-metrics" rollout to finish: 1 old replicas are pending termination...
Waiting for deployment "prometheus-kube-state-metrics" rollout to finish: 1 old replicas are pending termination...
deployment "prometheus-kube-state-metrics" successfully rolled out
$ sleep 60
$ kubectl -n monitoring port-forward svc/prometheus-kube-prometheus-prometheus 9090:9090 & PF1=$!
$ sleep 5
Forwarding from 127.0.0.1:9090 -> 9090
Forwarding from [::1]:9090 -> 9090
$ curl -sG localhost:9090/api/v1/query --data-urlencode 'query=kube_customresource_appenvironment_condition' | jq -r '.data.result[] | "\(.metric.name) \(.metric.type)=\(.metric.status) \(.value[1])"'
Handling connection for 9090
team-c-dev Ready=False 0
team-c-dev Responsive=False 0
team-c-dev Synced=False 0
team-c-dev Ready=True 1
team-c-dev Responsive=True 1
team-c-dev Synced=True 1
team-c-dev Ready=Unknown 0
team-c-dev Responsive=Unknown 0
team-c-dev Synced=Unknown 0
$ kill $PF1
$ kubectl -n monitoring patch deploy prometheus-kube-state-metrics --type json -p '[{"op":"remove","path":"/spec/template/spec/volumes"},{"op":"remove","path":"/spec/template/spec/containers/0/volumeMounts"},{"op":"remove","path":"/spec/template/spec/containers/0/args/2"}]'
deployment.apps/prometheus-kube-state-metrics patched
$ kubectl delete clusterrolebinding ksm-appenv
clusterrolebinding.rbac.authorization.k8s.io "ksm-appenv" deleted
$ kubectl delete clusterrole ksm-appenv
clusterrole.rbac.authorization.k8s.io "ksm-appenv" deleted
$ kubectl -n monitoring delete cm ksm-customresource
configmap "ksm-customresource" deleted from monitoring namespacekube_customresource_appenvironment_condition returns one series per condition per state, so the AppEnvironment team-c-dev reads Ready=True 1, Synced=True 1 and Responsive=True 1 with the False and Unknown states at 0. Drop the type label from the config and every condition lands on the same label set, which Prometheus rejects as a duplicate sample.Lead time for change is a subtraction: when was the commit authored, when did it reach the cluster. Do it once by hand for a real revision so the number means something before you automate it.
# the LoadBalancer IP only exists when cloud-provider-kind runs; the NodePort is always there
ARGO=$(kubectl get node cnpe-control-plane -o jsonpath='{.status.addresses[?(@.type=="InternalIP")].address}'):$(kubectl -n argocd get svc argocd-server -o jsonpath='{.spec.ports[?(@.port==80)].nodePort}')
argocd login "$ARGO" --username admin --password "$(kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath='{.data.password}' | base64 -d)" --plaintext --grpc-web
SHA=$(kubectl -n argocd get app demo-staging -o jsonpath='{.status.sync.revision}')
echo "revision: $SHA"
git clone "http://lab:${GITEA_PASS}@gitea.lab:3000/lab/platform.git" /tmp/platform-leadtime 2>/dev/null || true
git -C /tmp/platform-leadtime fetch --all
git -C /tmp/platform-leadtime log -1 --format=%cI "$SHA"
argocd app history demo-staging
kubectl -n argocd get app demo-staging -o jsonpath='{range .status.history[*]}{.revision} {.deployedAt}{"\n"}{end}'outputcaptured 2026-11-18
$ # the LoadBalancer IP only exists when cloud-provider-kind runs; the NodePort is always there
$ ARGO=$(kubectl get node cnpe-control-plane -o jsonpath='{.status.addresses[?(@.type=="InternalIP")].address}'):$(kubectl -n argocd get svc argocd-server -o jsonpath='{.spec.ports[?(@.port==80)].nodePort}')
$ argocd login "$ARGO" --username admin --password "$(kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath='{.data.password}' | base64 -d)" --plaintext --grpc-web
'admin:login' logged in successfully
Context '172.18.0.12:32162' updated
$ SHA=$(kubectl -n argocd get app demo-staging -o jsonpath='{.status.sync.revision}')
$ echo "revision: $SHA"
revision: 9122b3b7ce447c8ea8755ee20bdeb1a76e785265
$ git clone "http://lab:${GITEA_PASS}@gitea.lab:3000/lab/platform.git" /tmp/platform-leadtime 2>/dev/null || true
$ git -C /tmp/platform-leadtime fetch --all
warning: redirecting to http://gitea.lab:3000/lab/platform.git/
$ git -C /tmp/platform-leadtime log -1 --format=%cI "$SHA"
2026-11-18T02:00:44-05:00
$ argocd app history demo-staging
SOURCE http://gitea.lab:3000/lab/platform.git
ID DATE REVISION
3 2026-11-18 00:51:35 -0500 EST main (55f63ae)
4 2026-11-18 00:53:53 -0500 EST main (55f63ae)
5 2026-11-18 00:54:18 -0500 EST main (55f63ae)
6 2026-11-18 00:55:54 -0500 EST main (af211cc)
7 2026-11-18 00:56:17 -0500 EST main (34dd8a1)
8 2026-11-18 00:56:31 -0500 EST main (34dd8a1)
9 2026-11-18 02:27:21 -0500 EST main (9122b3b)
10 2026-11-18 02:27:31 -0500 EST main (9122b3b)
11 2026-11-18 02:43:10 -0500 EST main (9122b3b)
12 2026-11-18 02:50:09 -0500 EST main (9122b3b)
$ kubectl -n argocd get app demo-staging -o jsonpath='{range .status.history[*]}{.revision} {.deployedAt}{"\n"}{end}'
55f63ae149b35bc4c3aec26031456109b16f4f4b 2026-11-18T05:51:35Z
55f63ae149b35bc4c3aec26031456109b16f4f4b 2026-11-18T05:53:53Z
55f63ae149b35bc4c3aec26031456109b16f4f4b 2026-11-18T05:54:18Z
af211ccc2910226606fe3559f9f32f3861d70dbf 2026-11-18T05:55:54Z
34dd8a1a893ac80025f048b52a8d0175018263eb 2026-11-18T05:56:17Z
34dd8a1a893ac80025f048b52a8d0175018263eb 2026-11-18T05:56:31Z
9122b3b7ce447c8ea8755ee20bdeb1a76e785265 2026-11-18T07:27:21Z
9122b3b7ce447c8ea8755ee20bdeb1a76e785265 2026-11-18T07:27:31Z
9122b3b7ce447c8ea8755ee20bdeb1a76e785265 2026-11-18T07:43:10Z
9122b3b7ce447c8ea8755ee20bdeb1a76e785265 2026-11-18T07:50:09ZA suspended Kustomization is a promise the platform has stopped keeping, and nothing alerts on it by default. The gauge Flux exports makes it one query, and that query belongs on the platform dashboard.
flux suspend kustomization demo-flux
sleep 60
kubectl -n monitoring port-forward svc/prometheus-kube-prometheus-prometheus 9090:9090 & PF1=$!
sleep 5
# gotk_resource_info comes from kube-state-metrics with a CustomResourceState config this lab does not ship
curl -sG localhost:9090/api/v1/query --data-urlencode 'query=group by (__name__) ({__name__=~"gotk_.+"})' | jq -r '.data.result[].metric.__name__'
curl -sG localhost:9090/api/v1/query --data-urlencode 'query=count(gotk_suspend_status == 1)' | jq -r '.data.result[0].value[1] // "no gotk_suspend_status series"'
curl -sG localhost:9090/api/v1/query --data-urlencode 'query=gotk_suspend_status == 1' | jq '.data.result[] | .metric'
# gotk_resource_info comes from kube-state-metrics with a CustomResourceState config this lab does not ship
curl -sG localhost:9090/api/v1/query --data-urlencode 'query=count(gotk_suspend_status == 1)' | jq -r '.data.result[0].value[1] // "no gotk_suspend_status series"'
curl -sG localhost:9090/api/v1/query --data-urlencode 'query=gotk_suspend_status == 1' | jq '.data.result[] | .metric'
kill $PF1
flux resume kustomization demo-fluxoutputcaptured 2026-09-12
$ flux suspend kustomization demo-flux
► suspending kustomization demo-flux in flux-system namespace
✔ kustomization suspended
$ sleep 60
$ kubectl -n monitoring port-forward svc/prometheus-kube-prometheus-prometheus 9090:9090 & PF1=$!
$ sleep 5
Forwarding from 127.0.0.1:9090 -> 9090
Forwarding from [::1]:9090 -> 9090
$ # gotk_resource_info comes from kube-state-metrics with a CustomResourceState config this lab does not ship
$ curl -sG localhost:9090/api/v1/query --data-urlencode 'query=group by (__name__) ({__name__=~"gotk_.+"})' | jq -r '.data.result[].metric.__name__'
Handling connection for 9090
gotk_reconcile_duration_seconds_bucket
gotk_reconcile_duration_seconds_sum
gotk_reconcile_duration_seconds_count
gotk_token_cache_evictions_total
gotk_token_cached_items
gotk_event_http_request_duration_seconds_bucket
gotk_event_http_request_duration_seconds_sum
gotk_event_http_request_duration_seconds_count
gotk_event_http_requests_inflight
gotk_event_http_response_size_bytes_bucket
gotk_event_http_response_size_bytes_sum
gotk_event_http_response_size_bytes_count
$ curl -sG localhost:9090/api/v1/query --data-urlencode 'query=count(gotk_suspend_status == 1)' | jq -r '.data.result[0].value[1] // "no gotk_suspend_status series"'
Handling connection for 9090
no gotk_suspend_status series
$ curl -sG localhost:9090/api/v1/query --data-urlencode 'query=gotk_suspend_status == 1' | jq '.data.result[] | .metric'
Handling connection for 9090
$ # gotk_resource_info comes from kube-state-metrics with a CustomResourceState config this lab does not ship
$ curl -sG localhost:9090/api/v1/query --data-urlencode 'query=count(gotk_suspend_status == 1)' | jq -r '.data.result[0].value[1] // "no gotk_suspend_status series"'
Handling connection for 9090
no gotk_suspend_status series
$ curl -sG localhost:9090/api/v1/query --data-urlencode 'query=gotk_suspend_status == 1' | jq '.data.result[] | .metric'
Handling connection for 9090
$ kill $PF1
$ flux resume kustomization demo-flux
► resuming kustomization demo-flux in flux-system namespace
✔ kustomization resumed
◎ waiting for Kustomization reconciliation
✔ Kustomization demo-flux reconciliation completed
✔ applied revision main@sha1:b793ef22cee9cf7bc5eb3d41e236dda5c43670fbgotk_ metric this cluster has, and gotk_resource_info is not one of them: that metric comes from kube-state-metrics with a CustomResourceState config, which this lab does not ship, so a query against it is empty whatever Flux is doing. If gotk_suspend_status is in the list, the count is 1 while demo-flux is suspended and the last query names it. If it is not, the controllers export no suspension gauge on this Flux version and counting suspended objects means adding the kube-state-metrics config first.Deployment frequency starts as a counter on the CI controller. increase over a day is the honest form of the number, and knowing which label carries the outcome is the whole exercise.
kubectl -n monitoring port-forward svc/prometheus-kube-prometheus-prometheus 9090:9090 & PF1=$!
sleep 5
curl -sG localhost:9090/api/v1/query --data-urlencode 'query=tekton_pipelines_controller_pipelinerun_total' | jq '.data.result[] | {status: .metric.status, value: .value[1]}'
curl -sG localhost:9090/api/v1/query --data-urlencode 'query=increase(tekton_pipelines_controller_pipelinerun_total{status="success"}[24h])' | jq '.data.result[] | .value[1]'
curl -sG localhost:9090/api/v1/query --data-urlencode 'query=sum by (status) (increase(tekton_pipelines_controller_pipelinerun_total[24h]))' | jq '.data.result[] | {status: .metric.status, value: .value[1]}'
kill $PF1outputcaptured 2026-09-12
$ kubectl -n monitoring port-forward svc/prometheus-kube-prometheus-prometheus 9090:9090 & PF1=$!
$ sleep 5
Forwarding from 127.0.0.1:9090 -> 9090
Forwarding from [::1]:9090 -> 9090
$ curl -sG localhost:9090/api/v1/query --data-urlencode 'query=tekton_pipelines_controller_pipelinerun_total' | jq '.data.result[] | {status: .metric.status, value: .value[1]}'
Handling connection for 9090
{
"status": "success",
"value": "1"
}
$ curl -sG localhost:9090/api/v1/query --data-urlencode 'query=increase(tekton_pipelines_controller_pipelinerun_total{status="success"}[24h])' | jq '.data.result[] | .value[1]'
Handling connection for 9090
"0"
$ curl -sG localhost:9090/api/v1/query --data-urlencode 'query=sum by (status) (increase(tekton_pipelines_controller_pipelinerun_total[24h]))' | jq '.data.result[] | {status: .metric.status, value: .value[1]}'
Handling connection for 9090
{
"status": "success",
"value": "0"
}
$ kill $PF1increase and not the raw counter, and what a counter reset would do to each.Self-check
Name the DORA four and the system that holds each one's raw data in this lab.
Deployment frequency: Argo CD sync counters. Lead time: Git commit timestamps joined with CD deploy timestamps. Change failure rate: sync phases and rollout outcomes. Time to restore: alert history (firing to resolved) or incident records. None of them live in one single tool, which is why wiring telemetry together matters.
Why increase() rather than the raw counter for deployment frequency?
A raw counter climbs forever from startup and resets whenever the pod restarts. increase(...[24h]) gives you the exact count inside your window while handling resets cleanly, far more readable than a tiny per-second rate().
Your new ServiceMonitor for Argo CD produces no target. First two checks?
Verify endpoints[].port matches the Service's exact port name (http-metrics, not metrics or 8082) and confirm your label selector matches the Service's real labels. Then check Prometheus's serviceMonitorSelector and the monitor's namespaceSelector.
How would you measure "request to fulfillment" for a self-service API?
Measure the delta between a custom resource's metadata.creationTimestamp and the lastTransitionTime of its Ready condition, export it as a metric (via kube-state-metrics CustomResourceStateMetrics or a small exporter), and track p50/p95 over time.
Someone proposes measuring developer productivity by lines of code. Reply in one sentence.
Measure outcomes, not raw volume: DORA delivery metrics paired with platform-effectiveness measures (fulfillment latency, adoption, developer satisfaction) capture real value delivery, whereas line counts are trivially gamed and reward bloat.
Name the five DORA metrics as the 2024 report defines them, and say which group each belongs to.
Throughput: change lead time, deployment frequency, and failed deployment recovery time. Stability: change failure rate and deployment rework rate (unplanned hotfixes for user-facing bugs, added in 2024). Operational reliability is tracked alongside them rather than as a sixth key, and the 2025 report moved from four clusters to team archetypes.
The white paper's "organizational efficiency" group: which three latencies does it name, and how would you get the first one out of this lab?
Request-to-fulfillment latency for a capability, time to build and deploy a brand-new service to production, and time for a new developer to submit their first change. Pull the first from metadata.creationTimestamp to the Ready condition's lastTransitionTime on our Crossplane XR or kro instance, exposed via CustomResourceStateMetrics.
Which platform-tool metric would you alert on to learn that the platform, not the workloads, is degrading, and what kind of SLO fits it?
Alert on control-plane SLIs: Argo CD sync success ratio (argocd_app_sync_total), Crossplane/kro reconcile error rate (controller_runtime_reconcile_total{result="error"}), or webhook admission latency. Give it a 30-day availability SLO (like 99.5% clean reconciles) guarded by section 4.2's multi-window burn-rate rules.
Docs to know your way around
- argo-cd.readthedocs.io: the metrics page (metric names and labels).
- dora.dev: definitions, one page each; the exam-usable summaries.
- tag-app-delivery.cncf.io: the white paper's measurement section, for the platform-specific measures.
- Offline: the Prometheus UI's metric explorer against the
argocd_prefix, which is faster than any documentation. - dora.dev/guides/dora-metrics and dora.dev/insights/dora-metrics-history: the current names (failed deployment recovery time, rework rate) and the clarification that reliability is not a fifth key.
- tag-app-delivery.cncf.io/whitepapers/platforms/#how-to-measure-the-success-of-platforms: the three groups quoted above; /whitepapers/platform-eng-maturity-model for the Measurement levels.
- github.com/kubernetes/kube-state-metrics/blob/main/docs/metrics/extend/customresourcestate-metrics.md: how to turn any CR's status into a metric.