Skip to content

Add the prommetrics package - #5

Merged
a-menshchikov merged 1 commit into
mainfrom
prometheus
Nov 6, 2026
Merged

a-menshchikov merged 1 commit into
mainfrom
prometheus

Conversation

@a-menshchikov

Copy link
Copy Markdown
Member

The registration of the Go runtime and the process collectors, and the creation of the application metrics that follow the namespace and the registry of the context.

The prommetrics package registers the collectors in the given registerer. The Without* options turn the individual groups of the runtime metrics off, and WithMemStats keeps the legacy go_memstats_* family that the runtime metrics otherwise replace.

The ctxprom package keeps the registry and the namespace of the application in the context, so the code that creates the metrics does not have to pass them around. The New*For functions create the metric and register it in the registry of the context.

The registration of the Go runtime and the process collectors, and the
creation of the application metrics that follow the namespace and the
registry of the context.

The prommetrics package registers the collectors in the given registerer.
The Without* options turn the individual groups of the runtime metrics off,
and WithMemStats keeps the legacy go_memstats_* family that the runtime
metrics otherwise replace.

The ctxprom package keeps the registry and the namespace of the application
in the context, so the code that creates the metrics does not have to pass
them around. The New*For functions create the metric and register it in the
registry of the context.
@a-menshchikov
a-menshchikov merged commit 0bb4f43 into main Nov 6, 2026
21 checks passed
@a-menshchikov
a-menshchikov deleted the prometheus branch November 6, 2026 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant