Skip to content

V0.9.8#15

Merged
bartvanbenthem merged 4 commits into
mainfrom
v0.9.8
Jun 9, 2026
Merged

V0.9.8#15
bartvanbenthem merged 4 commits into
mainfrom
v0.9.8

Conversation

@bartvanbenthem

Copy link
Copy Markdown
Owner

v0.9.8

Breaking Changes

Metrics::new and Metrics::new_registered now require a namespace parameter.

The koprs_ prefix has been removed from the hard-coded metric names. Both constructors
now accept a namespace: &str argument that is prepended to every metric name with an
underscore separator.

Before After
Metrics::new() Metrics::new("myoperator")
Metrics::new_registered(&registry) Metrics::new_registered("myoperator", &registry)
metric: koprs_reconciliations_total metric: myoperator_reconciliations_total
metric: koprs_reconcile_errors_total metric: myoperator_reconcile_errors_total
metric: koprs_reconcile_duration_seconds metric: myoperator_reconcile_duration_seconds

Pass "" for no prefix (bare names like reconciliations_total).

Metrics::default() is unchanged and now resolves to Metrics::new("").

ControllerBuilder::metrics_port internally passes "", so operators using the builder
API with no direct Metrics construction are not affected by the API signature change,
but their published metric names will change from koprs_* to the bare names above.
Update any Prometheus alert rules or dashboards accordingly.

@bartvanbenthem bartvanbenthem merged commit 4f8d0c2 into main Jun 9, 2026
1 check passed
@bartvanbenthem bartvanbenthem deleted the v0.9.8 branch June 9, 2026 11:12
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