Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wip: enable gc metric collection #255

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

gmodena
Copy link

@gmodena gmodena commented Mar 15, 2024

I am opening this WIP PR to validate direction and collect feedback on an approach to enable prometheus default metrics collection.

Happy to drop / rebase atop other work we might have in flight.

Implementation details have been discussed in:

Bug: https://phabricator.wikimedia.org/T350180

Version bump prom-client.

Add a config option to collect default metrics
(including GC). This should be enable only when
running with no workers.
Throw an excpetion if metrics.prometheus.collect_default
is enabled in cluster mode.
Add a noop type of metric not registered by service-runner Metric interface.
This is used to delegate collection of default prometheus
metrics to prom-client.collectDefaultMetrics.
Copy link
Member

@jdforrester jdforrester left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems reasonable; shall we try it and see?

"semver": "^7.1.2",
"service-runner": "^3.1.0",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We shouldn't load ourself. :-)

@jdforrester
Copy link
Member

Have pushed a rebase version as #256 (as I can't push to your fork).

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.

2 participants