Repository navigation
Phase 2 / S7.E: controller workqueue metrics - #76
Merged
Merged
Conversation
Expose Prometheus metrics from the controller pod so operators can
SLO and alert on reconcile health without scraping logs.
* New controller/src/metrics.rs registering two IntCounterVecs:
azureclaw_controller_reconcile_errors_total{crd_kind, error_class}
azureclaw_controller_reconcile_retries_total{crd_kind}
* New controller/src/metrics_server.rs — axum server exposing
/metrics + /healthz on $CONTROLLER_METRICS_ADDR (default :9091).
* All eight error_policy fns wired to record_reconcile_error().
* Helm controller-deployment.yaml declares containerPort 9091.
* Controller Cargo.toml adds axum 0.8.
* 4 new unit tests; controller bin 345 → 349. Clippy / fmt / helm
lint clean.
Audit: docs/security-audits/2026-04-29-phase2-controller-metrics.md.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Pal Lakatos-Toth (pallakatos)
added a commit
that referenced
this pull request
May 12, 2026
Expose Prometheus metrics from the controller pod so operators can
SLO and alert on reconcile health without scraping logs.
* New controller/src/metrics.rs registering two IntCounterVecs:
azureclaw_controller_reconcile_errors_total{crd_kind, error_class}
azureclaw_controller_reconcile_retries_total{crd_kind}
* New controller/src/metrics_server.rs — axum server exposing
/metrics + /healthz on $CONTROLLER_METRICS_ADDR (default :9091).
* All eight error_policy fns wired to record_reconcile_error().
* Helm controller-deployment.yaml declares containerPort 9091.
* Controller Cargo.toml adds axum 0.8.
* 4 new unit tests; controller bin 345 → 349. Clippy / fmt / helm
lint clean.
Audit: docs/security-audits/2026-04-29-phase2-controller-metrics.md.
Co-authored-by: Pal Lakatos-Toth <pallakatos@microsoft.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
S7.E — controller Prometheus metrics
Expose
/metricsfrom the controller pod so operators can alert on reconcile health without scraping logs.controller/src/metrics.rs(counter registration + helper).controller/src/metrics_server.rs(axum /metrics + /healthz on :9091).record_reconcile_error.Audit:
docs/security-audits/2026-04-29-phase2-controller-metrics.md.Histograms / queue-depth / OTel spans deferred to S7.E.2.
Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com