Skip to content

Add custom Prometheus metrics#222

Open
iakmc wants to merge 1 commit intoplatform-mesh:mainfrom
iakmc:prometheus-custom-metrics
Open

Add custom Prometheus metrics#222
iakmc wants to merge 1 commit intoplatform-mesh:mainfrom
iakmc:prometheus-custom-metrics

Conversation

@iakmc
Copy link
Copy Markdown

@iakmc iakmc commented Apr 20, 2026

Added five custom metrics:

  • account_operator_accounts_reconciled_total - counter, labels: type, result
    (success/error/requeue). Incremented on every Reconcile call.

  • account_operator_webhook_validations_total - counter, labels: operation,
    result, account_type. Incremented at every allowed/denied path in the
    admission webhook.

  • account_operator_workspace_ready_duration_seconds - histogram, label: type.
    Measures time from Account creation to Workspace reaching Ready phase.

  • account_operator_workspacetype_operations_total - counter, labels: operation
    (created/updated), wst_kind (org/account). Tracks WorkspaceType create and
    patch operations performed for organizations.

  • account_operator_org_provisioning_duration_seconds - histogram. Measures
    time from org Account creation to its AccountInfo being written.

@iakmc iakmc force-pushed the prometheus-custom-metrics branch 2 times, most recently from 4460caf to 653bdce Compare April 20, 2026 22:27
Add custom Prometheus metrics

fix the linter
@iakmc iakmc force-pushed the prometheus-custom-metrics branch from 653bdce to 855f2b4 Compare April 20, 2026 22:42
@iakmc iakmc marked this pull request as ready for review April 20, 2026 22:48
@iakmc iakmc requested review from a team as code owners April 20, 2026 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant