Skip to content

Add Prometheus monitoring wrapper for go-micro v5#2894

Merged
asim merged 1 commit into
masterfrom
claude/fix-issue-2893-x3rpd
Apr 15, 2026
Merged

Add Prometheus monitoring wrapper for go-micro v5#2894
asim merged 1 commit into
masterfrom
claude/fix-issue-2893-x3rpd

Conversation

@asim
Copy link
Copy Markdown
Member

@asim asim commented Apr 15, 2026

Reintroduces the Prometheus metrics wrapper previously available in the plugins repository, updated for go-micro v5. Exposes request count and latency histograms for handlers, subscribers, and outgoing client calls via NewHandlerWrapper, NewSubscriberWrapper, NewCallWrapper and NewClientWrapper, labelled with service/endpoint/status.

Options cover namespace, subsystem, const labels, histogram buckets and a custom registerer; duplicate collectors (e.g. from multiple wrappers sharing the same config) are reused transparently via a cached metrics bundle.

Fixes #2893

Reintroduces the Prometheus metrics wrapper previously available in the
plugins repository, updated for go-micro v5. Exposes request count and
latency histograms for handlers, subscribers, and outgoing client calls
via NewHandlerWrapper, NewSubscriberWrapper, NewCallWrapper and
NewClientWrapper, labelled with service/endpoint/status.

Options cover namespace, subsystem, const labels, histogram buckets and
a custom registerer; duplicate collectors (e.g. from multiple wrappers
sharing the same config) are reused transparently via a cached
metrics bundle.

Fixes #2893
@asim
Copy link
Copy Markdown
Member Author

asim commented Apr 15, 2026

@BombartSimon

@BombartSimon
Copy link
Copy Markdown
Contributor

Looks perfect to me, thanks @asim. ;)

@asim asim merged commit 79722e0 into master Apr 15, 2026
4 checks passed
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.

[FEATURE] Reintroduce Prometheus monitoring wrapper for go-micro

3 participants