Observability: Metrics, Alerts, Tracing, and Grafana
Faber exposes Prometheus metrics on :9090/metrics, ships bundled ServiceMonitor and PrometheusRule templates, supports optional OpenTelemetry OTLP HTTP tracing, and bundles a Grafana dashboard directly inside the Helm chart.
Prometheus Metrics (/metrics)
Section titled “Prometheus Metrics (/metrics)”The controller serves a dedicated Prometheus metrics endpoint on controller.metricsPort (default 9090, path /metrics).
| Metric | Type | Labels | Description |
|---|---|---|---|
faber_runs_total |
Counter | policy, phase, tier, trigger |
Total completed remediation runs. |
faber_run_duration_seconds |
Histogram | policy, tier |
End-to-end remediation run duration in seconds. |
faber_run_steps |
Histogram | policy |
Number of ReAct loop steps taken per run. |
faber_tokens_total |
Counter | policy, model, kind |
LLM tokens consumed (input, cached, output, reasoning). |
faber_cost_usd_total |
Counter | policy, model |
Cumulative estimated LLM spend in USD. |
faber_tool_calls_total |
Counter | policy, tool, status |
Tool calls invoked by tool name and outcome. |
faber_policy_denials_total |
Counter | policy, reason |
Hard operator-side diff policy gate denials by reason. |
faber_sandbox_duration_seconds |
Histogram | policy, outcome |
Ephemeral sandbox execution duration in seconds. |
faber_extract_diff_duration_seconds |
Histogram | policy |
Operator-side sandbox diff extraction duration in seconds. |
faber_verifier_verdicts_total |
Counter | policy, verdict |
Independent verifier verdicts per policy. |
faber_prs_total |
Counter | policy, action, verified |
Pull or Merge Request actions and Verified commit status. |
faber_active_runs |
Gauge | policy, tier |
Currently active remediation runs. |
faber_approvals_total |
Counter | policy, decision |
Human-in-the-loop approval outcomes (approved, rejected, expired). |
faber_waiting_approvals |
Gauge | policy |
Runs currently paused in WaitingApproval. |
faber_circuit_breaker_trips_total |
Counter | policy, scope, reason |
Circuit breaker and spend cap trips. |
faber_store_pruned_runs_total |
Counter | none | Expired terminal runs pruned during retention sweeps. |
faber_notifications_total |
Counter | policy, sink, event, status |
Outbound notification delivery attempts. |
faber_pr_feedback_runs_total |
Counter | policy, outcome |
PR review feedback sync evaluations. |
faber_triggers_dropped_total |
Counter | policy, reason |
Triggers dropped by watch and webhook storm guards. |
faber_authz_denied_total |
Counter | action, reason |
Ownership ACL authorization denials by action and reason. |
faber_fleet_clusters_online |
Gauge | none | Federated spoke clusters currently reporting online on a Fleet Hub. |
faber_fleet_commands_total |
Counter | action, status |
Federated fleet commands by action (approve, reject, pause, resume) and status. |
faber_catalog_sync_total |
Counter | source, result |
Catalog source synchronization attempts by source (embedded or configured source ref) and result (ok, error). |
faber_catalog_packs_loaded |
Gauge | category |
Current number of loaded catalog packs by category (recipes, inputs, tools, outputs). |
Enable Prometheus Scraping (ServiceMonitor)
Section titled “Enable Prometheus Scraping (ServiceMonitor)”Enable the monitoring.coreos.com/v1 ServiceMonitor in Helm values:
serviceMonitor: enabled: true interval: 30s scrapeTimeout: 10s labels: release: kube-prometheus-stackBundled Prometheus Alerts (PrometheusRule)
Section titled “Bundled Prometheus Alerts (PrometheusRule)”Set prometheusRule.enabled=true to install 6 curated alerting rules with run deep links pointing to controller.publicUrl:
| Alert | Severity | Condition |
|---|---|---|
FaberControllerDown |
critical |
up{job=~".*faber.*"} == 0 for 5m |
FaberApprovalBacklog |
warning |
sum(faber_waiting_approvals) > 0 for 6h |
FaberCircuitBreakerTripped |
warning |
increase(faber_circuit_breaker_trips_total[15m]) > 0 |
FaberHighPolicyFailureRate |
warning |
Policy failure rate over 50% in the last hour with at least 3 runs |
FaberDiffGateDenials |
warning |
More than 3 diff policy gate denials for the same policy and reason in 1 hour |
FaberDailySpendHigh |
warning |
Rolling 24h LLM spend across all policies exceeds 2.50 USD |
Enable PrometheusRule in Helm values:
prometheusRule: enabled: true additionalLabels: release: kube-prometheus-stackOpenTelemetry Tracing
Section titled “OpenTelemetry Tracing”Faber instruments reconciler, LLM, tool, sandbox, diff extraction, and forge spans using OpenTelemetry (github.com/faberops/faber) with W3C TraceContext and Baggage propagation.
When no endpoint is configured, Faber installs a no-op TracerProvider and performs zero network I/O. Enable OTLP HTTP export via Helm or environment variables:
controller: otelEndpoint: http://otel-collector.observability.svc.cluster.local:4318You can also set --otel-endpoint directly on faber-controller or pass OTEL_EXPORTER_OTLP_ENDPOINT. If networkPolicy.enabled is true, add an egress rule under networkPolicy.extraEgress allowing TCP 4318 to your collector namespace.
Bundled Grafana Dashboard
Section titled “Bundled Grafana Dashboard”The Helm chart embeds charts/faber/dashboards/faber.json (kept byte-identical with deploy/dashboards/faber.json by make check-dashboards). The dashboard includes four rows:
- Fleet KPIs: Active Runs, Runs (Range), Success Rate, LLM Spend (Range), Prompt Cache-Hit Ratio, and Policy Denials (Range).
- Runs, Duration and Steps: Runs by Policy and Phase, Run Duration (p50 / p95), and ReAct Steps (p95) and Active Runs.
- LLM Spend, Tokens and Prompt Cache: USD Spend by Policy and Model, Tokens by Kind (
input,cached,output,reasoning), and Prompt Cache-Hit Ratio Over Time. - Tools, Diff Policy Gates, Sandboxes and Pull Requests: Tool Calls by Tool and Status, Diff Policy Denials by Reason, Sandbox Duration (p50 / p95), Pull Requests by Action and Verified Status, Sandbox Diff Extraction Duration (p50 / p95), and Verifier Verdicts by Policy and Verdict.
Option 1: kube-prometheus-stack Grafana Sidecar
Section titled “Option 1: kube-prometheus-stack Grafana Sidecar”By default, enabling grafanaDashboard.enabled=true renders a ConfigMap (<fullname>-dashboard) labeled with grafana_dashboard: "1" for automatic discovery by the Grafana sidecar:
grafanaDashboard: enabled: true sidecar: enabled: true label: grafana_dashboard labelValue: "1" folder: Platform folderAnnotation: grafana_folderInstall with Helm:
helm upgrade --install faber oci://ghcr.io/faberops/charts/faber \ --version 2.0.0 \ --namespace faber \ --set serviceMonitor.enabled=true \ --set prometheusRule.enabled=true \ --set grafanaDashboard.enabled=trueOption 2: Grafana Operator (grafana.integreatly.org/v1beta1)
Section titled “Option 2: Grafana Operator (grafana.integreatly.org/v1beta1)”If your cluster manages dashboards with Grafana Operator instead of the sidecar, disable the sidecar label and enable grafanaDashboard.grafanaOperator.enabled=true. Faber renders the dashboard ConfigMap plus a GrafanaDashboard CR referencing it via configMapRef:
grafanaDashboard: enabled: true sidecar: enabled: false grafanaOperator: enabled: true allowCrossNamespaceImport: true folder: Platform instanceSelector: matchLabels: dashboards: grafanaInstall with Helm:
helm upgrade --install faber oci://ghcr.io/faberops/charts/faber \ --version 2.0.0 \ --namespace faber \ --set grafanaDashboard.enabled=true \ --set grafanaDashboard.sidecar.enabled=false \ --set grafanaDashboard.grafanaOperator.enabled=trueSee the Helm Values Reference for every observability value and default.