Alert runbooks¶
This page documents the operational runbooks linked from KBeacon Prometheus alert rules.
KBeacon alerts are Secret dependency intelligence signals. They do not expose Secret values, but Secret names, workload names, namespaces, and owner metadata can still be sensitive. Keep alert notifications, dashboards, API snapshots, and incident notes limited to the teams that need access.
General alert flow¶
- Confirm the KBeacon Agent is healthy and Prometheus is scraping it.
- Identify the affected cluster, namespace, Secret, workload, or cache resource from alert labels.
- Use the Agent API or kbeaconctl to inspect current dependency state.
- Check whether the alert maps to an expected rollout, Secret rotation, certificate renewal, or workload deployment.
- Record impacted workloads and owner teams in the incident, change, or release ticket.
Useful baseline commands:
kubectl -n kbeacon-system rollout status deploy/kbeacon
kubectl -n kbeacon-system logs deploy/kbeacon --tail=100
kbeacon --namespace kbeacon-system ready
kbeacon --namespace kbeacon-system get config
When the alert names a Secret, use:
kbeacon impact report <namespace> <secret-name>
When reviewing before and after state, use:
kbeacon snapshot export --output before.json
kbeacon snapshot export --output after.json
kbeacon snapshot diff --format markdown before.json after.json
KBeaconAgentDown¶
Meaning¶
Prometheus cannot scrape the KBeacon Agent target or the Agent is unavailable.
Triage¶
- Check the Deployment rollout and Pod status.
- Check the Service and scrape target labels.
- Review recent chart, image, RBAC, or node changes.
Useful commands¶
kubectl -n kbeacon-system get deploy,pod,svc -l app.kubernetes.io/name=kbeacon
kubectl -n kbeacon-system describe deploy/kbeacon
kubectl -n kbeacon-system logs deploy/kbeacon --tail=200
kbeacon --namespace kbeacon-system health
Resolution¶
Restore the Agent Deployment, Service, scrape configuration, or network path. Confirm Prometheus target health and that the alert clears.
KBeaconCacheNotSynced¶
Meaning¶
A Kubernetes informer cache has not reported synced state for a watched resource.
Triage¶
- Identify the resource label from the alert.
- Check KBeacon logs for informer, RBAC, or API watch errors.
- Confirm the rendered RBAC includes get, list, and watch for the enabled resource.
Useful commands¶
kubectl -n kbeacon-system logs deploy/kbeacon --tail=200
kubectl auth can-i list pods --as=system:serviceaccount:kbeacon-system:kbeacon
kubectl auth can-i list secrets --as=system:serviceaccount:kbeacon-system:kbeacon
kbeacon --namespace kbeacon-system ready
Resolution¶
Fix RBAC, API connectivity, or disabled watcher configuration. Confirm the readiness endpoint reports the expected cache as synced or optional.
KBeaconGraphRebuildLatencyHigh¶
Meaning¶
Dependency graph rebuild p95 latency is above the configured alert threshold.
Triage¶
- Check whether there was a workload or Secret churn spike.
- Review cluster scale and edge metric cardinality.
- Consider whether detailed edge metrics should be disabled in large clusters.
Useful commands¶
kubectl -n kbeacon-system logs deploy/kbeacon --tail=200
kbeacon --namespace kbeacon-system get config
kbeacon --namespace kbeacon-system get dependency-map | jq ".data.edges | length"
Resolution¶
Tune KBeacon resource limits, reduce unnecessary watched namespaces, disable detailed edge metrics when needed, or investigate unusual Kubernetes object churn.
KBeaconSecretChangedWithImpact¶
Meaning¶
A Secret changed recently and currently affects at least one workload.
Triage¶
- Identify whether the Secret change was planned.
- Use the impact report to list affected workloads and teams.
- Check affected workload rollout status and application alerts.
Useful commands¶
kbeacon impact report <namespace> <secret-name>
kubectl -n <namespace> get secret <secret-name>
kubectl get deploy,statefulset,daemonset,job,cronjob -A
Resolution¶
If the change was planned, confirm affected workloads are healthy. If unplanned, coordinate rollback, Secret recreation, or workload restart according to the owning team process.
KBeaconCriticalSecretChangedRecently¶
Meaning¶
A high or critical Secret changed recently and affects workloads.
Triage¶
- Treat this as higher priority than a normal Secret change.
- Identify owner team and impacted workloads.
- Confirm whether the Secret rotation, certificate renewal, or credential change was approved.
Useful commands¶
kbeacon impact report <namespace> <secret-name>
kubectl -n <namespace> get events --sort-by=.lastTimestamp
kubectl -n <namespace> rollout status deploy/<workload-name>
Resolution¶
Coordinate with the owner team, validate workload health, and record the impact assessment in the incident or change ticket.
KBeaconHighImpactSecret¶
Meaning¶
A Secret has an impact score above the configured high-impact threshold.
Triage¶
- Review affected workload, team, and namespace fan-out.
- Confirm whether ownership and criticality metadata are accurate.
- Consider additional review controls for future changes to this Secret.
Useful commands¶
kbeacon impact report <namespace> <secret-name>
kbeaconctl get secrets --namespace <namespace>
Resolution¶
Document ownership, classify the Secret correctly, and ensure planned changes include the affected teams.
KBeaconLargeSecretFanout¶
Meaning¶
A Secret affects many workloads.
Triage¶
- List affected workloads and namespaces.
- Check whether the fan-out is expected, such as a shared registry credential or root certificate.
- Validate owner-team metadata and change process.
Useful commands¶
kbeacon impact report <namespace> <secret-name>
kbeaconctl get dependency-map --secret-name <secret-name>
Resolution¶
Use a staged rollout or coordinated change plan for future updates. Split overly broad shared Secrets where appropriate.
KBeaconUnresolvedSecretReference¶
Meaning¶
A workload references a Secret that KBeacon cannot observe as existing.
Triage¶
- Confirm whether Secret watching is disabled for low-privilege mode.
- Check whether the Secret name or namespace is wrong.
- Check whether the reference is optional.
Useful commands¶
kbeaconctl get dependency-map --resolved false
kubectl -n <namespace> get secret <secret-name>
kubectl -n <namespace> describe deploy/<workload-name>
Resolution¶
Create or fix the referenced Secret, correct the workload reference, or document the low-privilege expected behavior.
KBeaconNoDependenciesDiscovered¶
Meaning¶
KBeacon sees workloads but no Secret dependencies have been discovered.
Triage¶
- Confirm workloads actually reference Secrets.
- Check namespace include and exclude filters.
- Check discovery mode and disabled resource watchers.
- Confirm KBeacon is watching Pods and workload controllers.
Useful commands¶
kbeacon --namespace kbeacon-system get config
kbeacon --namespace kbeacon-system get workloads --limit 100
kbeacon --namespace kbeacon-system get dependency-map | jq ".data.edges | length"
Resolution¶
Fix discovery mode, namespace filters, or resource watcher configuration. Confirm dependency edges appear in the API or metrics.