Skip to content

Add domain selection + optional prefix to CanopyPrometheusVisitor - #26

Merged
noha merged 1 commit into
mainfrom
add-prometheus-domain-selection-and-prefix
Jul 27, 2026
Merged

Add domain selection + optional prefix to CanopyPrometheusVisitor#26
noha merged 1 commit into
mainfrom
add-prometheus-domain-selection-and-prefix

Conversation

@noha

@noha noha commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

The Prometheus export now supports choosing which domains to export and optionally prefixing a domain's metric names, mirroring the old pharo-metrics namespacing (image/virtualMachine under a pharo group, apptiveGrid bare) without coupling domain nodes to how they are exported.

  • addDomain: / addDomain:prefix: configure the export selection.
  • export formats only the configured domains, each with its optional prefix.
  • convertMetricName: prepends the current prefix; format: is unchanged (currentPrefix nil -> bare fullKey), so existing callers keep their behavior.

Prefix is an export-time concern held on the visitor, never on the domain.

Canopy-Metrics-Tests 16/16, Canopy-Core-Tests 73/73 green.

The Prometheus export now supports choosing which domains to export and
optionally prefixing a domain's metric names, mirroring the old pharo-metrics
namespacing (image/virtualMachine under a `pharo` group, apptiveGrid bare)
without coupling domain nodes to how they are exported.

- addDomain: / addDomain:prefix: configure the export selection.
- export formats only the configured domains, each with its optional prefix.
- convertMetricName: prepends the current prefix; format: is unchanged
  (currentPrefix nil -> bare fullKey), so existing callers keep their behavior.

Prefix is an export-time concern held on the visitor, never on the domain.

Canopy-Metrics-Tests 16/16, Canopy-Core-Tests 73/73 green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@noha
noha merged commit 5502170 into main Jul 27, 2026
4 checks passed
@noha
noha deleted the add-prometheus-domain-selection-and-prefix branch July 27, 2026 18:33
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